Deal with errors?

Jun 9, 2008 at 4:54 PM
Is there any way to detect an error?  Perhaps you could create an event much like FileReceived that could provide error details.

Thank you in advance.
Jun 10, 2008 at 10:59 PM
If you have an upload error you should see it as the file being colored in red. That should be enough fr the user. You can passmore information with the content status code
Oct 18, 2008 at 8:06 AM
Sorry, how is this done exactly? I'm having a bit of trouble implementing the uploader myself, and the only response I get is the file turning red with "error" written after it, and I'm not really sure how to debug any further. Can you shed some light on this, please?
Oct 18, 2008 at 8:22 AM
Edited Oct 18, 2008 at 8:31 AM
Most likely you don't have write permission for the folder you are uploading in. Or you have specified non existing folder. Use to see what exactly is the problem. Note that you cannot use fiddler with localhost so use the computer name instead.

... or use instead of localhost, see:
Oct 18, 2008 at 8:45 AM
After using Fiddler, I can see that I get the following error:

[HttpException]: The SaveAs method is configured to require a rooted path, and the path 'checklist.jpg' is not rooted.

My code is as follows:

<fjx:FileUploader ID="FileUploader1" runat="server" >
        <fjx:FileSaverAdapter Runat="server" FolderName="Upload" />

The upload folder does exist, and it is in the same directory as the aspx file that has the fileuploader. I haven't set any special permissions on the Upload folder, but it exists in wwwroot with everything else, so it should be fine, right?
Oct 18, 2008 at 12:47 PM
Hmmm, even if I set FolderName to "~/Upload", so it won't complain about not being rooted, I get the error

[HttpException]: 'C:\inetpub\wwwroot\Upload' is not a valid virtual path.

Oct 18, 2008 at 1:33 PM
Strange I can't seem to reproduce your error. What is the version of Flash you are using? Go here to find the details:
Oct 18, 2008 at 2:07 PM
OK I see it now it was a bug introduced with the latest change. It appears when no File Determening event is used, that's why I couldn't see it - I had such event in my code.

Please get the latest source or binaries and there will be no issue.
Oct 19, 2008 at 11:00 AM
Works beautifully now, thank you very much.