• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Filtering the file names

 
Mary Cole
Ranch Hand
Posts: 362
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a web page where the input type is file field.When I click on the browse button I
want to show all the files which has the extension .csv when the Upload dialoque box is displayed on the screen.Is it possible to do it in the front end using Java script
Thx in advance
 
cer
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
you can realize it with javascript or servlet :roll:
 
Mary Cole
Ranch Hand
Posts: 362
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey cer thx for ur reply..
can u guide me how it can be done???
 
Ravi Kumar Ravuru
Ranch Hand
Posts: 176
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Mary,
Please look at the following link
http://javascript.internet.com/forms/upload-filter.html
where the javascript function filters the files. Hope it will help u.
Ravi
 
Mary Cole
Ranch Hand
Posts: 362
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey ravi,,
can i filter the file names at the window dialogue level(i mean when the file dialogue box opens)
 
Mary Cole
Ranch Hand
Posts: 362
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Any idea on this..pls respond
 
Mary Cole
Ranch Hand
Posts: 362
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any luck guys?
 
Sreenivasa Majji
Ranch Hand
Posts: 224
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately the answer is NO. Because the dialog is a component of browswer and we don't have a control on that. I had exact requirement ( I have to upload only .xls files). So we used the script mentioned in the previous message.
If you find any better solution, please update us.
Happy holidays,
Sreenivasa Majji.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic