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

How to cancal file uplading if the file size is zero?

3 Answers 71 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 15 Sep 2012, 02:36 PM
How to cancal file uplading and alert a message if the uploaded file size is zero?

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 18 Sep 2012, 12:19 PM
Hello,

 
This can not be done on the client-side but you can use the OnFileUploaded event and if the e.File.ContentLength is zero to set the "IsValid" property to false

Hope this will be helpful.

Greetings,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
john
Top achievements
Rank 1
answered on 18 Sep 2012, 12:22 PM
How can I check it in client side instead of server side?
0
Plamen
Telerik team
answered on 19 Sep 2012, 05:46 AM
Hello,

 
Unfortunately this can not be checked on the client side.

All the best,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
AsyncUpload
Asked by
john
Top achievements
Rank 1
Answers by
Plamen
Telerik team
john
Top achievements
Rank 1
Share this question
or