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???
|
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.htmlThanks
|