• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validating file extension problem

 
siddharth paul
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hii all
in my code i m uploading a file with .doc extension
its working fine and giving alert when extension is not .doc but the problem is when it is different file extension, after the alert it is not clearing the field.
 
siddharth paul
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
using reset as a solution will reset the whole page but i want only file field to be reset.
what are the security restriction for resetting a file field.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not set the value of the field since it is a security concern.

You can try ext.reset() and see if that works, I am guessing that it will not.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic