Forums

Files Upload: limiting size (KB) of PDF and photo (pixels)

Fredolino 18 Dec, 2015
Hello there,

when I upload a picture with the action "Files Upload" in the form, which works great,
How do I set up then, that this image is stored and displayed simultaneously in a certain size?
I have the action "Resize Image" used, the image field name is entered, 150x150 px indicated. I must, however, still determined to enter the path?

And if I want in another File Set upload field that a PDF file must not exceed a certain size (eg, 50 KB), how can I adjust it?

F.
GreyHead 18 Dec, 2015
Hi Fredolino,

If you temporarily add a DeBugger action to your form after the Re-size image action you will see the data that is being created for the re-sized images. You can then use this, or save it to the database like other form data (some custom code may be required to save it).

To assign different upload size limits for PDFs use a second Files Upload action for them.

Bob
This topic is locked and no more replies can be posted.