Apr 10th, 2014, 11:55 PM
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!
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!