Welcome Guest Search | Active Topics | Sign In | Register

AJAXUploader restricting the size of individual file Options
RAM
Posted: Tuesday, January 27, 2009 11:05:49 AM
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
eo_support
Posted: Tuesday, January 27, 2009 11:11:22 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.