FileReceivedEventArgs

May 23, 2008 at 9:17 AM
Response.Redirect doesnt work in the FileReceivedEventArgs. any ideas ?
Coordinator
May 28, 2008 at 10:47 PM
FileReceivedEventArgs happens in a separate request you will need client side code to redirect from there.

Jun 2, 2008 at 7:05 AM
which part of the code should i add the 'redirect code' ? i need to redirect after the file has been uploaded.
Coordinator
Jun 2, 2008 at 4:27 PM
For example this will redirect it to google:

<fjx:FileUploader ID="FileUploader1" runat="server" >
    <Adapters>
        <fjx:FileSaverAdapter Runat="server" FolderName="UploadFolder" />
    </Adapters>
    <FileListInitTraverseJsFunction><![CDATA[
      function(box, files, currPerc){
        box.innerHTML = "";
        box.style.display = "none";
        var perc = parseInt(currPerc.innerHTML);
        if(perc >= 99){
          document.location.href = 'http://google.com';
        }
      }
    ]]></FileListInitTraverseJsFunction>
</fjx:FileUploader>