*
The moose likes HTML, CSS and JavaScript and the fly likes Uploading files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Uploading files" Watch "Uploading files" New topic
Author

Uploading files

ram gaurav
Ranch Hand

Joined: Mar 29, 2006
Posts: 208
Hi

I am creating one application in which i have to upload word documents.

I have created BROWSE button through:



What i want that , when user click BROWSE then file chosser dialog box will get open , in that user can only able to select WORD documents.

Thanks
Gaurav
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Rumor has it that there is an accept attribute, but it is not in any spec docs so I think you are out of luck. Best you could do is clientside validation to check the file type.

Eric
ram gaurav
Ranch Hand

Joined: Mar 29, 2006
Posts: 208
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Uploading files
 
Similar Threads
To generate Word Documents
File Chooser Dialog box
Bad file path
JSP with unknown MIME TYPE
Printing word documents from Servlet