Code Monkey home page Code Monkey logo

laravel-chunk-upload-example's Introduction

Laravel chunked upload example

This repo contains full example for laravel-chunk-upload package.

Requiremenets

  • PHP >= 7.2.0
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension

More at laravel.com

Installation

composer install
npm install
npm run dev
cp .env.example .env
php artisan key:generate

Versions

You can choose which version of laravel you are using.

Current branch (master) - Laravel 6.5

Laravel 5.5

Full example with at laravel-5-5 branch

Laravel 5.4

Full example with at laravel-5-4 branch

Usage

  • Run serve php artisan serve
  • Open the root page http://localhost:8000 and open the desired examples.

Example code

Uploading to AMAZON s3 (or any other cloud storage)

It is recommended to upload the file in separate queue JOB. Uploading can take a time (for large files) and the request could get timed out. It is important to stream the file to the cloud (not using file_get_contents) which would eat your memory. Also don't forget to remove the uploaded file after upload.

Example code found at ./app/Http/Controllers/UploadController.php.

Copyright and License

laravel-chunk-upload-example was written by Martin Kluska and is released under the MIT License.

Copyright (c) 2017 Martin Kluska

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.