NetTalk Central

Author Topic: File Upload - limit file size  (Read 3477 times)

ianburgess

  • Full Member
  • ***
  • Posts: 119
    • View Profile
    • Email
File Upload - limit file size
« on: August 15, 2012, 07:22:12 AM »
How can I limit the filesize of a file upload in a webform, preferably before the file is uploaded, if it is larger than x bytes?

Thanks

Ian

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Re: File Upload - limit file size
« Reply #1 on: August 15, 2012, 07:46:53 PM »
I think it's a bit hard to do because most browsers won't "know" about the file size until after the upload process has begun.

We've been having good results in implementing the Uploadify library into our NT apps for file uploads.  It allows much more control over file sizes, file types etc. but best of all it shows a progress bar of file uploads and allows multiple simultaneous file uploads too!

Would be nice if Bruce could find a way to incorporate Uploadify into NT as part of the template (hint hint) ;)

Cheers,
Devan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: File Upload - limit file size
« Reply #2 on: August 15, 2012, 10:10:00 PM »
Hi Ian,

The whole issue of better management of file uploads (both to make better usabiltiy for the user, and also to manage malicious uploads) is something I'm looking into. As with most things though it's not as trivial as it seems at first glance.

Cheers
Bruce