Skip to content

Releases: Sopamo/laravel-filepond

(Beta) Add support for append only blobs with azure driver

19 Mar 10:34

Choose a tag to compare

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

Laravel 12 compatibility

16 Feb 19:38
fe184c3

Choose a tag to compare

v1.5.0

Bump dependencies for Laravel 12 (#81)

Improve chunked uploads

30 Apr 10:15
714d00f

Choose a tag to compare

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

21 Apr 10:44
7232ba4

Choose a tag to compare

v1.3.0

Bump dependencies for Laravel 11 (#77)

Laravel 10 support

02 Feb 10:25
b6a659e

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.1.1...v1.2.0

Improve file/directory deletion

21 May 10:36
f1d821f

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.1.0...v1.1.1

Laravel 9 support

22 Apr 08:28
87ec876

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0...v1.1.0

V1 release

31 Mar 11:48

Choose a tag to compare

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

16 Mar 11:43

Choose a tag to compare

Pre-release
v1.0-beta2

Performance improvements

Add support for chunked uploads

10 Mar 16:08
ee957ab

Choose a tag to compare

Pre-release

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