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

MaxFileSize and MaxInputFileCount

1 Answer 59 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 04 Feb 2009, 05:28 PM
Hello,

The MaxFileSize and MaxInputFileCount for the RadUpload: how does this get validated, on the server or on the client?  Does the RadUpload prevent uploading a file that violates the MaxFileSize property on the client, or on the server during some event?  Can that be validated using a Validator control?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 06 Feb 2009, 09:52 AM
Hi Brian,

MaxFileSize is a validation property, checked on the server only. This comes because of a limitation with the FileInput fields - the size of the file cannot be read by the browser. Despite the limitation, there is a workaround provided by RadUpload to check the total request size on the client. The Checking File Size on the Client article demonstrates the approach and provides some sample code.

MaxFileInputCount property only defines RadUpload's behavior. It is not used for any validation, that's why it is managed only on the client.

I hope this helps.

Best regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Upload (Obsolete)
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or