FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a way to validate file size?
#1
Hi, I just setup file upload and have a question about file size validation.

It seems to me, when using the built-in settings page for Files, you can set the maximum file size, but if a file is oversized, there won't be a warning or error feedback to the submitter. Rather, the file was just not uploaded while the form was successfully submitted.

Hence my question is whether there's an API tool on the PHP side to validate the file size and show a warning that the form will not be submitted.

Thanks in advance for any thoughts!

Reply
#2
I am pretty sure it can't be done out of the box with FT but here is a decent solution:

http://adamsanderson.github.io/jQuery-File-Validator/

Not sure it works with all browsers since I haven't tested it. Worth a shot!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)