• Stars
    star
    478
  • Rank 91,950 (Top 2 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The basic implementation for chunk upload with multiple providers support like jQuery-file-upload, pupload, DropZone and resumable.js

Laravel Chunk Upload

Total Downloads Build Status Latest Stable Version Latest Unstable Version License

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 pion/laravel-chunk-upload

2. Publish the config (Optional)

php artisan vendor:publish --provider="Pion\Laravel\ChunkUpload\Providers\ChunkUploadServiceProvider"

Usage

Setup consists of 3 steps:

  1. Integrate your controller that will handle the file upload. How to
  2. Set a 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 ✔️ ✔️ ✔️ @pionl
DropZone Wiki ✔️ ✔️ ✔️ @pionl
jQuery-File-Upload Wiki ✔️ ✖️ ✔️ @pionl
Plupload Wiki ✔️ ✖️ ✖️ @pionl
simple uploader ✖️ ✔️ ✖️ ✖️ @dyktek
ng-file-upload Wiki ✔️ ✖️ ✖️ @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 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

Version PHP
10.* 8.1, 8.2
9.* 8.0, 8.1
8.* 7.4, 8.0, 8.1
7.* 7.4

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

More Repositories

1

laravel-chunk-upload-example

Example project for laravel-chunk-upload
JavaScript
59
star
2

smart-emailing-v3

Wrapper for SmartEmailing API v3 version in PHP
PHP
11
star
3

laravel-eloquent-position

Position logic for Eloquent models with minimum setup
PHP
9
star
4

bitbar-gitlab-ci

Shows currently running pipelines from your GitLab in your bar.
Python
4
star
5

laravel-swagger-test

Test your routes using Laravel's underlying request testing (without making real request) against your API schema.
PHP
4
star
6

docker-node-with-lftp

Docker image based on official node (8, 9, 10, alpine versions) with lftp installed
Dockerfile
3
star
7

laravel-lelastico

Focus of this library is to make it easier to manage elastic indices (wit mappings / settings), create reusable query building (manual or from request).
PHP
3
star
8

docker-node-with-openssl

Docker image based on official node with openssl installed
Dockerfile
3
star
9

load-image-queue

Loading image with queue support to allow loading images as you need. Ideal for virtual list (with cancel support).
JavaScript
3
star
10

laravel-support-eloquent

Package with small support traits and classes for the Laravel Eloquent models
PHP
3
star
11

load-queue

Designed to allow running task in a queue with parallel support. Can be used for image or file loading.
JavaScript
2
star
12

listr-inquirer

Inquirer module for Listr
JavaScript
2
star
13

glue-webpack-plugin

Glue for creating sprites via webpack
JavaScript
2
star
14

CountDownTimeAgoLabel

CountDown logic via custom label. You can use use own view implementation via CountDown class usage
Swift
2
star
15

laravel-environment-config

Enables loading the app config (registers providers and aliases) based on the environment or custom usage (custom config name)
PHP
2
star
16

OAuth2Password-android

Easy integration of OAuth2 login with password gran. Using google-oauth-client. Support saving credentials.
Java
1
star
17

laravel-config-class-gate

Enables loading classes (or objects) via config files in Laravel
PHP
1
star
18

IMCropScrollView

Objective-C
1
star
19

METno

MET.no (Yr.no) API library for fetching weather forecast
PHP
1
star
20

listr-simple-tree-renderer

Listr renderer with simple tree support (non concurrent tasks)
JavaScript
1
star