Event before uploading files

Last post 03-23-2009, 1:17 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  03-23-2009, 1:12 PM 50188

    Event before uploading files

    Hi there,
     
    I 'd like to know if occurs an event before intializing the upload of the files selected. I need to make some verifications of the filenames against the database before uploading the files. Some of this verifications may prevent the upload of a specific file.
     
    I'm dealing with large files (around 200 Mb) and it's not admissible to make the verifications I want after the upload is complete.
     
    Thanks in advance.
     
    Hugo Rodrigues
     
  •  03-23-2009, 1:17 PM 50189 in reply to 50188

    Re: Event before uploading files

    Hugo,
     
    Please check this page :
     
     
    You can use the on select event and cancel it if the file is not valid.
     
    But in IFrame mode, the filesize is not available.
     
    You should validate the file at server side by attach the FileValidating event too , (for security reason , the script validation is not trust-able)
     
    Regards,
    Terry
View as RSS news feed in XML