PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

gform validation - filesize and type

  1. reddishpink
    Member

    Hello
    Can anyone point me in the right direction for gform validation on rejecting files based on size over 2MB for example and file types? Like DOC,EXE,XLS...

    Thanks

    Posted 11 years ago on Thursday April 11, 2013 | Permalink
  2. reddishpink
    Member

    any help for this? Im still looking for this in the documentation

    Posted 11 years ago on Sunday April 14, 2013 | Permalink
  3. David Peralty

    In our file upload field, you can set which file extensions you'll allow, but there currently isn't any built-in way to check file sizes. File size limits are determined by PHP.ini server settings and files aren't uploaded until the form is submitted without errors.

    Posted 11 years ago on Monday April 15, 2013 | Permalink
  4. reddishpink
    Member

    Ok I added this to my PHP INI file
    .....................................
    memory_limit = 32M
    upload_max_filesize = 3M
    post_max_size = 3M
    ....................................
    But the page just hangs on submit now. Any ideas? How should this error message appear?
    http://www.the-soc.org.uk/get-involved/upload-your-images/

    Posted 11 years ago on Tuesday April 23, 2013 | Permalink