kladislav / laravel-chunk-upload
Service for chunked upload with several js providers
Installs: 21 061
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 11
Open Issues: 0
Requires
- php: >=7.2
- illuminate/console: ^6.0 || ^7.0 || ^8.0 || ^9.0
- illuminate/filesystem: ^6.0 || ^7.0 || ^8.0 || ^9.0
- illuminate/http: ^6.0 || ^7.0 || ^8.0 || ^9.0
- illuminate/support: ^6.0 || ^7.0 || ^8.0 || ^9.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-11-15 00:07:27 UTC
README
Introduction
Easy to use service/library for chunked upload with supporting multiple JS libraries on top of Laravel's file upload with low memory footprint in mind. Currently supports Laravel 5+ (with 5.5 Auto discovery) with features as cross domains requests, automatic clean schedule and easy usage.
Installation
1. Install via composer
composer require kladislav/laravel-chunk-upload
2. Add the service provider (Laravel 5.4 and below - supports Auto discovery)
\Kladislav\LaravelChunkUpload\ServiceProvider::class
3. Publish the config (Laravel 5.2 and above, optional)
php artisan vendor:publish --provider="Kladislav\LaravelChunkUpload\ServiceProvider"
Usage
Setup is composed in 3 steps:
- Integrate your controller that will handle the file upload. How to
- Setting route for the controller. How to
- Choose your front-end provider below (we support multiple providers in single controller)
Simultaneous uploads: The library must send last chunk as last, otherwise the merging will not work correctly.
Custom disk: At this moment I recommend to use the basic storage setup (not linking public folder). It is not tested (Have free time to ensure it is working? PR the changes!).
For more detailed information (tips) use the Wiki or for working example continue to separate repository with example.
Changelog
Can be found in releases.
Contribution or extending
See CONTRIBUTING.md for how to contribute changes. All contributions are welcome.
Copyright and License
laravel-chunk-upload was written by Martin Kluska and is released under the MIT License.
Copyright (c) 2016-2019 Martin Kluska