how to return a StatusCode for each uploaded file?

Last post 07-25-2009, 1:10 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  07-20-2009, 4:39 PM 54137

    how to return a StatusCode for each uploaded file?

    Hello,
    I am permiting the users to upload files but I only accept files that correspond to certain criteria that I get to know only after the file has been fully uploaded. That means that I would be able in the uploader_FileUploaded event to return a status code for the current file that I would be able to use in the upload page to tell the user if the file was accepted or not (with an icon for example)...
     
    How can I do that ?
     
    Thanks a lot in advance...
     
    J. 
  •  07-25-2009, 1:10 AM 54271 in reply to 54137

    Re: how to return a StatusCode for each uploaded file?

    Hi,
     
    You can use such way based on the guid :
     
    ViewState[arg.FileGuid]="MyStatus";
     
    Regards,
    Terry
     
View as RSS news feed in XML