kladislav/laravel-chunk-upload

Service for chunked upload with several js providers
21,592 6
Install
composer require kladislav/laravel-chunk-upload
PHP:>=7.2
License:MIT
Last Updated:Jan 31, 2023
Links: GitHub  ·  Packagist
Maintainer: Kladislav

Laravel chunked upload

Total Downloads Build Status Latest Stable Version Latest Unstable Version License

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:

  1. Integrate your controller that will handle the file upload. How to
  2. Setting route for the controller. How to
  3. Choose your front-end provider below (we support multiple providers in single controller)
Library Wiki single & chunk upload simultaneous uploads In example project Author
resumable.js Wiki :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: @pionl
DropZone Wiki :heavy_check_mark: :heavy_check_mark: :heavy_check_mark: @pionl
jQuery-File-Upload Wiki :heavy_check_mark: :heavy_multiplication_x: :heavy_check_mark: @pionl
Plupload Wiki :heavy_check_mark: :heavy_multiplication_x: :heavy_multiplication_x: @pionl
simple uploader :heavy_multiplication_x: :heavy_check_mark: :heavy_multiplication_x: :heavy_multiplication_x: @dyktek
ng-file-upload Wiki :heavy_check_mark: :heavy_multiplication_x: :heavy_multiplication_x: @L3o-pold

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

Related Packages

netipar/laravel-chunky

Chunk-based file upload package for Laravel with event-driven architecture, resu...

2,530 0
jobtech/laravel-chunky

A laravel manager to handle chunked files upload

11,297 44
recca0120/upload

Ajax Upload Large File Support jQuery-File-Upload, FileApi, Plupload, Support fr...

6,815 80
zentnova-libs/livewire-filepond-chunks

Laravel 12 + Livewire 3 wrapper for FilePond chunked uploads with instant finali...

2
peinhu/aetherupload-laravel

Upload large files for Laravel 上传 大文件 laravel包

90,048 911