Optimizing file upload for large files avoid slow move on save
Hi everyone,
I am using the
FileUpload
FileUpload
component to upload very large files (3 to 10GB) to an S3 bucket, and it works well after adjusting all the relevant settings for Livewire, PHP, etc.
However, from what I understand, the file is first uploaded to tmp/ and then moved to the final location.
The moving process on save can be extremely slow—sometimes up to a minute. This isn't great for user experience since filepond.js indicates that the file has already been uploaded.
Is there anything that could be done to either move the file asynchronously or upload it directly to the final location? (I do see potential issues if the user abandons the form after upload.)