Welcome Guest Search | Active Topics | Sign In | Register

Ajax Uploader - File Size Options
nik patel
Posted: Tuesday, December 29, 2009 1:40:17 PM
Rank: Newbie
Groups: Member

Joined: 12/29/2009
Posts: 2
Is there a way to determine the size of the file before clicking the Upload Button? We would like to know the size of the file before the user attempts to upload it.
eo_support
Posted: Tuesday, December 29, 2009 2:09:24 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

There is no way for you to check the file size before the user attempts to upload. Otherwise it would have been a serious security hole where website owner can write pages to automatically gather file size information from user's computer without user having to do anything.

The most you can do is to set the uploader's MaxDataSize to restrict the file size. This allows the uploader to check the request header size. The check occurs after user clicks upload button, but before the actual file is being transferred.

Thanks!
nik patel
Posted: Tuesday, December 29, 2009 2:17:41 PM
Rank: Newbie
Groups: Member

Joined: 12/29/2009
Posts: 2
Thanks, I knew there had to be a logical reason!


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.