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.

How to set minimum image dimension for post image field and validate it

  1. Hello,

    I would like to reinforce the minimum size of images to be uploaded in a form, say to 1200 x 730.
    How can I validate this before the form is submitted?

    Many thanks, Dasha

    Posted 6 years ago on Thursday April 4, 2013 | Permalink
  2. David Peralty
    Administrator

    We currently don't have any way to do this, as our file upload utility is just a basic HTML one, and files aren't uploaded until the form is submitted. You could, once the form is submitted, wait for the upload, test to see its size using your own custom PHP, and return an error if it doesn't fit your needs.

    Posted 6 years ago on Thursday April 4, 2013 | Permalink
  3. Thank you David, I will look into it.

    Posted 6 years ago on Friday April 5, 2013 | Permalink