Download the PHP package evgen-dev/plupload-for-laravel without Composer
On this page you can find all versions of the php package evgen-dev/plupload-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download evgen-dev/plupload-for-laravel
More information about evgen-dev/plupload-for-laravel
Files in evgen-dev/plupload-for-laravel
Package plupload-for-laravel
Short Description Laravel/Plupload - Handle large file uploads
License MIT
Informations about the package plupload-for-laravel
Plupload for Laravel
Laravel integration for Plupload.
Supports single-file and chunked uploads.
Requirements
- PHP 8.0+
- Laravel 9.x–12.x
Localization
If the file does not exist, create it and add the following entries:
Installation
Install the package using Composer:
The Laravel Service Provider is registered automatically through Package Auto-Discovery.
Usage
Import the Facade:
Basic upload without restrictions
Limit file size
The default size unit is megabytes (MB), using the binary system (1024 bytes).
You can also specify the byte conversion system:
Limit file extensions
Combine file size and extension restrictions
Usage in a controller
CSRF Protection
The upload route uses Laravel's standard CSRF protection.
Add the CSRF token to your Blade template:
Pass the token in the Plupload initialization options:
Keep CSRF protection enabled for upload routes.
Handling upload errors
You can handle file size and extension errors in Plupload's ChunkUploaded event:
All versions of plupload-for-laravel with dependencies
illuminate/support Version ^9.0 || ^10.0 || ^11.0 || ^12.0
illuminate/http Version ^9.0 || ^10.0 || ^11.0 || ^12.0