• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Uploading files

 
ram gaurav
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic