OnFileUploaded Not Firing Until All Files Uploaded

Last post 10-23-2009, 8:27 AM by cutechat. 3 replies.
Sort Posts: Previous Next
  •  10-22-2009, 5:07 PM 56609

    OnFileUploaded Not Firing Until All Files Uploaded

    I'm trying to determine if this is intended.
     
    Right now we're expecting to receive FileUploaded after each file is uploaded, and UploadCompleted after all files have finished uploading.
     
    Instead, it seems we're getting 6 different FileUploaded events after all files have been uploaded, not after each individual file. When using UploadCompleted, we receive a single array of events.
     
     Is this expected? It seems significantly less useful. Is there any way to receive an event as soon as each file is uploaded?
     
    Thanks.
  •  10-22-2009, 11:24 PM 56613 in reply to 56609

    Re: OnFileUploaded Not Firing Until All Files Uploaded

    Hi,
     
    when you upload multiple files , the order is :
     
    uploading file1
    server FileValidating for file1
    uploading file2
    server FileValidating for file2
    ...
    uploading filen
    server FileValidating for filen
    client OnPostback event
    server FileUploaded event
    server UploadCompleted event
     
    This is by design , because FileValidating is Uploader Ajax call and you can't change the UI there.
     
    But FileUploaded is fired by page postback , we want developer do the logic there.\
     
    Regards,
    Terry
  •  10-23-2009, 7:17 AM 56628 in reply to 56613

    Re: OnFileUploaded Not Firing Until All Files Uploaded

    Our hope was to convert each file to a certain size as soon as each file upload has finished, to prevent having to do it all at the back end. Is that kind of functionality possible using your system?
  •  10-23-2009, 8:27 AM 56633 in reply to 56628

    Re: OnFileUploaded Not Firing Until All Files Uploaded

    Hi,
     
    You can do that on the FileValidating event.
     
    use UploaderEventArgs args.GetTempFilePath() method to get the tempfile and process it.
     
    Regards,
    Terry
View as RSS news feed in XML