Rank: Member Groups: Member
Joined: 4/8/2008 Posts: 19
|
Hi
AJAXUploader has a property MaxDataSize which will put the limit of the total size of the files we are uploading at a time ( MaxFileCount is grereater than one).
Is there any way we can check like .... I have set MaxFileCount to 3 and want to heck the size restriction for each file not greater tahan 5mb?
Please respond as soon as possible.
Thanks Ram
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You won't be able to do that directly. You would set a reasonable total MaxDataSize (for example, 15MB for three files), and in your server side FileUploaded handler you would then check the size of each individual files. If the size exceeds certain value, you can discard the file and display a message to the user.
The short story is, the file can be uploaded and then discarded, but it can not be refused up front like how MaxDataSize works.
Thanks!
|