starmoozie / laravel-chunk-upload
Service for chunked upload with several js providers
Requires
- illuminate/console: 5.2 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0
- illuminate/filesystem: 5.2 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0
- illuminate/http: 5.2 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0
- illuminate/support: 5.2 - 5.8 | ^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16.0
- mockery/mockery: ^1.1.0 | ^1.3.0
- overtrue/phplint: ^1.1 | ^2.0
- phpunit/phpunit: 5.7 | 6.0 | 7.0 | 7.5 | 8.4 | ^8.5 | ^9.3 | ^10.0
This package is auto-updated.
Last update: 2024-12-15 02:10:00 UTC
README
Introduction
Supports Laravel from 5.2 to 9 (covered by integration tests for 7/8/9 versions).
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.
Supports feature as cross domains requests, automatic clean schedule and easy usage.
Example repository with integration tests can be found in laravel-chunk-upload-example.
Before adding pull requests read CONTRIBUTION.md. Help me fix your bugs by debugging your issues using XDEBUG (and try to do a fix - it will help you become better).
Installation
1. Install via composer
composer require starmoozie/laravel-chunk-upload
2. Publish the config (Optional)
php artisan vendor:publish --provider="Pion\Laravel\ChunkUpload\Providers\ChunkUploadServiceProvider"
Usage
Setup consists of 3 steps:
- Integrate your controller that will handle the file upload. How to
- Set a 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 using 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
Read contribution before your PR (and use example repository to run integration tests).
See CONTRIBUTING.md for how to contribute changes. All contributions are welcome.
Compatibility
Laravel 5/6 should be still supported but we are not testing them via automation sccripts
Copyright and License
laravel-chunk-upload was written by Martin Kluska and is released under the MIT License.
Copyright (c) 2016 and beyond Martin Kluska