Skip Navigation

[Resolved] Upload multiple files

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Waqar 5 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#1215480
Screen Shot 2019-03-18 at 14.10.44.png
Screen Shot 2019-03-18 at 14.08.52.png

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.

#1217003

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

#1217692

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.

#1218546

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