Hi Wapplers!
I have successfully setup a Digital Ocean bucket and I can successfully upload 1 file at a time. However, I am having trouble trying to upload multiple files. I can successfully upload multiple files to my public/uploads directory on my server, but I have changed my structure to hold files on digital ocean instead due to security concerns.
So, in summary, does multiple file uploads work with S3? If so, can someone guide me how to do this? I am running the same process to upload multiple files to S3, but it’s only uploading the first file, and it’s ignoring the rest in my $_POST form.
Hi David,
I have a multiple file uploads setup for Wasabi s3 that works as expected. There are a couple of places where multiple file upload setup is different to a single file upload.
- Dropzone input has been set to
multiple
. Check that the input name is showing it as an array []
input. e.g. uploadImages[]
.
- In the API, add these two steps
a) File Upload - under properties, give it a name. e.g. uploadRepeatImages
. Click on the dynamic picker next to Upload Fields to select input name of the dropzone, from our example uploadImages
.
b) add a repeat step and select uploadRepeatImages
from the previous step. This will give you access to sub data such as name, path, url etc.
Then move all your image and s3 related steps such as Load Image, Resize Image, Put File etc. within the repeat.
Hi There,
Thanks for your response.
I have set mine up a slightly different way. I am using the S3 multi uploaded on the client side. However, no files are actually uploading. CORS is setup on digital ocean but files just not showing up. I might post a new topic re this.
Thanks anyway,