This help desk is no longer actively support. We have switched to a ticketing system to more smoothly manage support, and free up development time. Your newly created tickets won't be available here. You will instead have an email history of your new tickets.

We are working on moving everything current and helpful from public tickets into the docs. This will be a long process and in the meantime, public tickets will remain searchable.

Your private tickets will remain available to you indefinitely. See your old tickets.

Help Desk

Possible to disable automatic image resizing of images uploaded through form?

Labels

This Ticket is public

Notifications

Hi

We have a form where users upload images through a file upload form field and I would like to make sure that the uploaded files don't get automatically resized by WordPress after upload. I only want the original that the user uploaded in the submission to be saved on the server.

I can't seem to find a previous post about it so wondering if it is possible?

Appreciat the help!

Also no need for this ticket to be privat, so please make it public so maybe the answers can help someone else as well.

The different image sizes generated when you upload a file (Usually thumbnail, medium and large - in addition to the original "Full" sized image) are generated by WordPress, not Formidable.

There is a guide here on how to control those image sizes and remove unwanted ones: https://wpbeaches.com/remove-unused-image-media-sizes-wordpress-theme/

Does that help?

The issue is that I don't want WordPress to generate these additional sizes only for the uploaded files from Formidable, all other uploads I want WordPress to work as normal.

I'm afraid that since this is a core WordPress feature, Formidable has no control over it, and you would need custom code to specifically prevent this function only for Formidable uploads.

I think I managed to get an approach where I delete all the generated images after post submission working, see code in gist through link below:

https://gist.github.com/j-falk/fc39826fea6a0691ac06d3c6c0aa8f84

Maybe it can help someone else.

Thanks for sharing!

Ticket closed.