Problem:
How are image uploads affected by the changes in Toolset Forms 2.4 and what does it mean for validating the image uploads?
Solution:
Prior to Forms 2.4 a bespoke ajax uploader was used to pre-upload images (i.e. upload images as soon as selected rather than waiting for the form submission).
Since Forms 2.4 the native WP uploader is used for logged-in users (subject to the settings in the form). It cannot be used for guest users, for whom images are uploaded along with the form submission.
When using the native WP uploader the cred_form_ajax_upload_validate hook can still be used, otherwise the cred_form_validate hook should be used.
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate
https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_ajax_upload_validate
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 2 replies, has 2 voices.
Last updated by 5 years, 4 months ago.
Assisted by: Nigel.