Giter Site home page Giter Site logo

aetherupload-laravel's Introduction

aetherupload-laravel

提供超大文件上传的laravel扩展包,带百分比进度显示,支持断点续传,支持自定义中间件,基于laravel 5开发。 示例页面

用法

  1. 在终端内切换到你的laravel项目根目录,执行composer require peinhu/aetherupload-laravel dev-master

  2. config/app.phpproviders数组中添加一行Peinhu\AetherUpload\AetherUploadServiceProvider::class,

  3. 执行php artisan vendor:publish来发布一些文件和目录

  4. 赋予上传目录相应权限,执行chmod 755 /项目根目录的绝对路径/storage/app/uploads -R

  5. 在浏览器访问http://根域名/aetherupload可到达示例页面

提示:更改相关配置选项请编辑config/aetherupload.php

优化建议

  • 利用Linux的tmpfs文件系统,来达到将临时文件放到内存中快速读写的目的。
    执行以下命令:
    mkdir /dev/shm/tmp
    chmod 1777 /dev/shm/tmp
    mount --bind /dev/shm/tmp /tmp

贡献者

peinhu
……(期待你的加入)

许可证

使用GPLv2许可证, 查看LICENCE文件以获得更多信息。

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.