Sopamo Laravel Filepond Versions Save

Laravel backend module for filepond uploads

v1.4.0

2 weeks ago

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() }}'
    }
  }
});

v1.3.0

3 weeks ago

v1.2.0

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/Sopamo/laravel-filepond/compare/v1.1.1...v1.2.0

v1.1.1

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/Sopamo/laravel-filepond/compare/v1.1.0...v1.1.1

v1.1.0

2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/Sopamo/laravel-filepond/compare/v1.0...v1.1.0

v1.0

2 years ago

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.

v0.6.2

3 years ago

v1.0-beta2

3 years ago

v1.0-beta

3 years ago

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

v0.6.1

3 years ago