(Beta) Add support for append only blobs with azure driver
Pre-release
Pre-release
If using matthewbdaly/laravel-azure-storage as a storage driver, we now use azure's append only blobs for much better upload performance when using chunking.
Breaking changes
When using this driver, you have to update your filepond config to include the Content-Type when initializing a chunked file upload and enable chunkForce:
FilePond.setOptions({
chunkForce: true, // <-- add this
server: {
url: "/filepond/api",
process: {
url: "/process",
headers: (file: File) => {
// Send the original file name which will be used for chunked uploads
return {
"Upload-Name": file.name,
"X-CSRF-TOKEN": "{{ csrf_token() }}",
"Content-Type": file.type, // <-- add this
};
},
},
revert: "/process",
patch: "?patch=",
headers: {
"X-CSRF-TOKEN": "{{ csrf_token() }}",
},
},
});