The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Check image resolution on image file upload
Hello,
I am wondering whether it is possible to check resolution of an image when it is uploaded using the AJAX uploader form element, and display an error when it fails to meet a minimum? Which hook(s) could I use?
February 7, 2018 at 2:50 pm
I would suspect you would have to use the wp_get_attachment_image function and run some query to accomplish this.
February 8, 2018 at 6:14 am
Preferably I would like to display a notification right after the upload finishes, but before the form is submitted, so I think the image would not yet be an attachment at that point..
February 11, 2018 at 2:23 am
Formidable use Dropzone as file upload library. You can start with that. I'm currently looking for ways to detect if there are files uploaded.
Discussion closed.