This is a migrated thread and some comments may be shown as answers.

File upload unstable

2 Answers 66 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jason M
Top achievements
Rank 2
Jason M asked on 15 Dec 2008, 07:36 PM
A radupload control is used in our web application. It is working fine in the testing environment. When it is used on our live site, it is working fine most of the time. Once in a while, without showing any error message, the file is not uploaded onto the server, but the file name is written into the table. We couldn't find a pattern to duplicate this error.

Any suggestion to resolve this issue will be really appreciated.

Thanks,
Fangwei

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 16 Dec 2008, 05:32 PM
Hi Jason M,

Can you paste here the code you are using to save the file? Is there any server-side exception logged when this problem occurs? I think there might be two things happening:
  • Uploading empty files
  • Invalid HTTP POST requests made by some malicious bot or user
You can try adding a check if the ContentLength property of the uploaded file is greater than zero. This would filter out empty files.

Greetings,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Alaa Majzoub
Top achievements
Rank 2
answered on 18 Dec 2008, 07:16 AM
We are having a similar problem,

we are getting files occasionally from another session !!!!

we still couldn't reproduce this.  any suggestions?

Tags
Upload (Obsolete)
Asked by
Jason M
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Alaa Majzoub
Top achievements
Rank 2
Share this question
or