Releases: Sopamo/laravel-filepond
Releases · Sopamo/laravel-filepond
Improve chunked uploads
Improve chunked uploads:
- Add ability to send the original file name, which is then used for automatic mime type detection
- Reduce memory usage by streaming chunks to a temporary local file and then streaming the final file to the final storage disk
To use the new mime type detection, update your filepond js config:
FilePond.setOptions({
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() }}",
}
},
},
revert: '/process',
patch: "?patch=",
headers: {
'X-CSRF-TOKEN': '{{ csrf_token() }}'
}
}
});
Laravel 11 support
v1.3.0 Bump dependencies for Laravel 11 (#77)
Laravel 10 support
What's Changed
- Laravel 10.x Compatibility by @laravel-shift in #68
New Contributors
- @laravel-shift made their first contribution in #68
Full Changelog: v1.1.1...v1.2.0
Improve file/directory deletion
What's Changed
- Fix deleteDirectory by @cirolaferrara in #64
- Fix error on delete method by @ryanito in #53
New Contributors
- @cirolaferrara made their first contribution in #64
- @ryanito made their first contribution in #53
Full Changelog: v1.1.0...v1.1.1
Laravel 9 support
What's Changed
- Adding Laravel 9.x support by @ntaylor-86 in #60
New Contributors
- @ntaylor-86 made their first contribution in #60
Full Changelog: v1.0...v1.1.0
V1 release
V1 brings support for chunking and PHP 8.
Breaking changes
- The
getPathFromServerId
no longer returns the full path to the file. Instead, it returns the "disk"-local path. See the updated installation instructions in the readme for a working example.
Improve chunk upload performance
v1.0-beta2 Performance improvements
Add support for chunked uploads
Breaking changes:
The getPathFromServerId
no longer returns the full path to the file. Instead it returns the "disk"-local path.
For example:
// Before
/var/www/html/public/storage/filepond/yourFile.jpg
// After
filepond/yourFile.jpg
You have to use Laravel's storage class to access the files now:
$filepond = app(Filepond::class);
$disk = config('filepond.temporary_files_disk');
$filePath = $filepond->getPathFromServerId($serverId);
Storage::disk($disk)->get($filePath); // This returns the file contents as a string
PHP 8 support
v0.6.2 Fix typo
Fix a typo in the readme
v0.6.1 Fix typo