coolpraz's avatar

S3 Temporary file upload driver only support single file uploads using Minio

I m testing Livewire File upload using Minio instead of Amazon S3, for single file it work fine but when i use multiple file it give me this error.

Livewire\Exceptions\S3DoesntSupportMultipleFileUploads
S3 temporary file upload driver only supports single file uploads. Remove the [multiple] HTML attribute from your input tag.
0 likes
1 reply
splatEric's avatar

Yeah that makes sense because S3 provides a single URL for a file to be uploaded to. You can still provide a UI to receive multiple file references from the user, but then you need to do a call to a controller that will return a temp url for each file. You then post the individual files to those urls.

When the form is submitted, submit a reference for each file to your laravel controller so you can manipulate the upload and store then where you want them to be on S3.

I use dropzone.js to give me the appropriate hooks, but am sure there are other options available as well …

1 like

Please or to participate in this conversation.