Hi there,
I need to be able to have clients upload multiple files as one part of a front end submission form using Toolset. As in this window I am typing in, I am able to upload multiple images to you (attached images to illustrate this). But there doesn't seem to be a way form me to do this using Toolset.
Can you please help?
Many thanks for your time,
Very best wishes,
Andrew.
Hi Andrew,
Thank you for contacting us and I'll be happy to assist.
To achieve this, you can configure a Toolset file type field and set it to have multiple instances.
( example screenshot: hidden link )
We have a guide on the topic of adding custom fields at:
https://toolset.com/documentation/user-guides/using-custom-fields/#how-to-add-custom-fields-to-content
Next, you can configure a Toolset Form to add that post type and include this repeating file field in that form:
https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-creating-content/
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
Hi Waqar,
Many thanks for your reply.
I know how to add custom fields and how to have content created from the front end using Toolset.
My question is simply about being able to have users on the frontend upload multiple images at once.
Your screenshot ( hidden link ) is interesting. What would happen on the front end here? Would users be able to drag lots of files to the field and they would upload, or would thay have to keep repeating a process many times for each file? What is the process for uploading multiple files?
Finally, a separate question I guess, how would those files be kept secure so that other users are unable to see or access them at all.
Thanks again,
Andrew.
Hi Andrew,
Thanks for writing back.
On the front-end, that file upload field will look like this screenshot:
hidden link
A visitor will be able to upload multiple files, one at a time, using the "Add new" link, but not all at once:
hidden link
The drag-n-drop multi-file feature is not currently supported, but you're welcome to submit this as a feature request.
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
>> Finally, a separate question I guess, how would those files be kept secure so that other users are unable to see or access them at all.
The files uploaded through the front-end forms are added to WordPress' media library (WP Admin -> Media -> Library), just like other other uploaded files.
By default, users will only be able to access them, if they'll know the exact file path.
To restrict access to the media library items, the following are some useful resources:
https://wordpress.org/plugins/prevent-direct-access/
hidden link
hidden link
regards,
Waqar