Welcome Guest Search | Active Topics | Sign In | Register

AjaxUploader Validate Options
Nezdet Arif
Posted: Sunday, March 16, 2008 5:21:22 AM
Rank: Member
Groups: Member

Joined: 2/16/2008
Posts: 7
Are there any methods how to validate a uploding file?? it should contain the extensions .JPG, .jpg, jpeg, .Bmp.. all the imagefiles... and how to print a errormessage???
eo_support
Posted: Sunday, March 16, 2008 7:28:38 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
Hi,

You will need to set AllowedExtensions to limit the type of files allowed. Once you set that, the uploader will automatically check the extension for you and display an error message when user tries to upload a file with an extension that is not allowed. You can customize the error message by handling ClientSideOnError:

http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.Handlers.clientside_error_handler.html

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.