We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17379
    • 26 Posts
    Hello,
    How can i validate "input type=file" from Eform that the error about to big file size will be displayed with other error messages in [+validationmessage+] area?
    I read about validation rules and "#RANGE" but i dont know how to use it. (http://wiki.modxcms.com/index.php/EForm)
    Thanks for any help

      • 12028
      • 152 Posts
      I don’t think that you can check the file size with php before it’s uploaded - or with Eform at all.

      You can try place this in the form:
      <input type="hidden" name="MAX_FILE_SIZE" value="100000" />

      - but it are still checked after upload, and are easily bypassed...
        - A small step for mankind, so why not take two...

        Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!