PHPackages                             lanyunit/laravel-uploader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. lanyunit/laravel-uploader

ActiveLibrary[File &amp; Storage](/categories/file-storage)

lanyunit/laravel-uploader
=========================

集成cos、oss、本地上传的包

v1.1.2(1mo ago)052[1 PRs](https://github.com/w872730491w/laravel-uploader/pulls)MITPHPPHP ^8.2CI failing

Since Feb 23Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/w872730491w/laravel-uploader)[ Packagist](https://packagist.org/packages/lanyunit/laravel-uploader)[ Docs](https://github.com/w872730491w/laravel-uploader)[ RSS](/packages/lanyunit-laravel-uploader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (32)Versions (14)Used By (0)

Laravel Uploader
================

[](#laravel-uploader)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5497f682aee3129b20befa3c3975a5b5c91566a6abf8b733a188c21a962e6f25/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c616e79756e69742f6c61726176656c2d75706c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lanyunit/laravel-uploader)[![GitHub Tests Action Status](https://camo.githubusercontent.com/6bb71d44026dbf78e1372a5866164cdd0d43b6dc627b1ee46e74b27e126cd8e1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f77383732373330343931772f6c61726176656c2d75706c6f616465722f72756e2d74657374732e796d6c3f6272616e63683d6d6173746572266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/w872730491w/laravel-uploader/actions/workflows/run-tests.yml?query=branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/156f8ba1a705215c8436ad255207b10293ae1a7b9050a4d1ffe9f2b40430cce0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f77383732373330343931772f6c61726176656c2d75706c6f616465722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d6173746572266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/w872730491w/laravel-uploader/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/4dff00f2587f13734a3bf74e50be74456690e529d824a2f8c4d882ef50fa5431/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c616e79756e69742f6c61726176656c2d75706c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/lanyunit/laravel-uploader)

Integrate `local`, `Tencent Cloud COS`, `Alibaba Cloud OSS` uploads

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require lanyunit/laravel-uploader
```

You can publish the config file with:

```
php artisan vendor:publish --tag="uploader-config"
```

This is the contents of the published config file:

```
return [
    'allow' => [
        'audio' => [
            'mime' => ['audio/mpeg'],
            'max_size' => 30
        ],
        'video' => [
            'mime' => ['video/mp4', 'video/quicktime', 'video/mpeg', 'video/avi'],
            'max_size' => 30
        ],
        'files' => [
            'mime' => '*',
            'max_size' => 30
        ],
        'image' => [
            'mime' => ['image/jpeg', 'image/png', 'image/gif'],
            'max_size' => 30
        ],
    ]
];
```

Configuration
-------------

[](#configuration)

1. Add a new disk to your `config/filesystems.php` config:

```
