Login  
Search All Forums
Dart Home | PowerWEB File Upload for ASP.NET | Custom Development Reply | PowerWEB File Upload for ASP.NET Topics | Forums   
AuthorForum: PowerWEB File Upload for ASP.NET
Topic: Better Error Messages for Dart FileUpload control
Sateesh
sateeshseelam@gmail.com

From: Hyderabad, India
Posts: 3
Member Since: 01/07/11
posted January 13, 2011 6:19 AM

Hi,

We have integrated the Dart FileUpload control into our .Net application. The uploading process works fine.
But when ever there is a failure in upload, we can just see two kinds of error messages returned by the File Upload control.

1) Flash object reported a SecurityError attempting to upload file [FileName.ext] : securitySandboxError
2) SavePath cannot be found or is inaccessible.

We need better error messages showing the exact problem of why the error is coming. Could anybody please help me in this regard?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted January 13, 2011 4:55 PM

Hi,
When it is used in Flash mode, the control reports the error that Flash reports.
Admittedly, these can be too generic or simply not helpful, but this is what we have to work with.

I believe the securitySandboxError will occur if the upload destination is a different site than the one hosting the Flash object.
Unfortunately, I do not know how to, or even if there is a way to overcome it.
I am also not sure what other scenarios will produce the error (if any).

As a test, you might try switching to IFrame mode to see if there is a better error reported.

-ken
Sateesh
sateeshseelam@gmail.com

From: Hyderabad, India
Posts: 3
Member Since: 01/07/11
posted January 17, 2011 3:55 AM

Hi Drake,

Thanks for you reply.
But, we don't know in which mode we are using the upload control.
So could you please let us know how we can identify in which mode the Upload control is operating in??
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted January 17, 2011 9:17 AM

Hi,
Certainly. See the UploadManager.UploadType property.
The default value is AutoDetect, which uses Flash if the browser supports it.
-ken
Sateesh
sateeshseelam@gmail.com

From: Hyderabad, India
Posts: 3
Member Since: 01/07/11
posted January 19, 2011 5:51 AM

Hi Drake,
Thanks for your Reply..
I tried using all the modes (IFrame, Flash and AutoDetect) , but none of them seems to give better messages.

Is there any other way from which I can achieve my requirement??
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted January 19, 2011 3:21 PM

Hi,
If you are already examining the e.FailedUpload argument when the FileUploadFailed event fires, I don't have more to offer as far as getting a "better" error message.
Except maybe to be sure to examine the InnerException in case there is something there.

Is there an exception when using IFrame under the same circumstances as the Flash Sandbox error?
If so, what does it look like?

I would hazard the second error occurs when the UploadManager.SavePath does not exist, or lacks write permissions.

-ken
Reply | PowerWEB File Upload for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX