PHPackages                             fsg-herbie/chunk-file-upload - 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. fsg-herbie/chunk-file-upload

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

fsg-herbie/chunk-file-upload
============================

文件上传小扩展，可支持大文件分块分片上传到七牛云or本地，优化您上传大文件的苦恼

1.0.2(5y ago)17MITPHPPHP &gt;=7.0.0

Since May 5Pushed 5y agoCompare

[ Source](https://github.com/fsg-herbie/batch-file-upload)[ Packagist](https://packagist.org/packages/fsg-herbie/chunk-file-upload)[ Docs](https://github.com/catlane/chunk-file-upload)[ RSS](/packages/fsg-herbie-chunk-file-upload/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

因最近比较忙，所以有问题直接issues就可以了，看到我会回复并提供修改帮助的

laravel-admin extension
=======================

[](#laravel-admin-extension)

文件上传小扩展，可支持大文件`分块分片`上传到七牛云or本地，优化您上传大文件的苦恼

截图
--

[](#截图)

[![IMG](https://camo.githubusercontent.com/f4139fd26f06a42aae5adf24ed288033a6e47246eaa83d914a42eea49fda5754/68747470733a2f2f716e2e6c6f76796f752e746f702f626c6f672f323031392f30352f3230313930353239393432375f323138322e706e673f77617465726d61726b2f312f696d6167652f6148523063484d364c7939336433637562473932655739314c6e527663433936596c393163325679637939776248566e6157347663576c756158563564573476643246305a5849756347356e2f646973736f6c76652f38302f677261766974792f536f757468456173742f64782f31302f64792f3130)](https://camo.githubusercontent.com/f4139fd26f06a42aae5adf24ed288033a6e47246eaa83d914a42eea49fda5754/68747470733a2f2f716e2e6c6f76796f752e746f702f626c6f672f323031392f30352f3230313930353239393432375f323138322e706e673f77617465726d61726b2f312f696d6167652f6148523063484d364c7939336433637562473932655739314c6e527663433936596c393163325679637939776248566e6157347663576c756158563564573476643246305a5849756347356e2f646973736f6c76652f38302f677261766974792f536f757468456173742f64782f31302f64792f3130)

安装
--

[](#安装)

```
$ composer require fsg-herbie/batch-file-upload

$ php artisan vendor:publish --tag=chunk-file-upload

$ php artisan storage:link

```

然后配置 `config/chunk_file_upload.php`:

```
    'disks' => [

            'local' => [
                'driver' => 'local' ,
                'root' => storage_path ( 'app' ) ,
            ] ,

            'public' => [
                'driver' => 'local' ,
                'root' => storage_path ( 'app/public' ) ,
            ] ,
            'qiniu_live' => [//七牛云
                'driver' => 'qiniu' ,//如果是七牛云空间，必填qiniu
                'domains' => [
                    'default' => '****' , //你的七牛域名
                    'https' => '' , //你的HTTPS域名
                    'custom'    => '****',                //你的自定义域名
                ] ,
                'access_key' => '****' ,  //AccessKey
                'secret_key' => '*****' ,  //SecretKey
                'bucket' => '***' ,  //Bucket名字
                'url' => '*******' ,  // 填写文件访问根url
            ]
        ] ,
        'default' => [
            'disk' => 'public' ,//默认磁盘
            'extensions' => 'jpg,png,mp4' ,//后缀
            'mimeTypes' => 'image/*,video/*' ,//类型
            'fileSizeLimit' => 10737418240 ,//上传文件限制总大小，默认10G,默认单位为b
            'fileNumLimit' => '5' ,//文件上传总数量
            'saveType' => 'json', //单文件默认为字符串，多文件上传存储格式，json:['a.jpg','b.jpg']
        ]
```

使用
--

[](#使用)

单文件上传：

```
$form->chunk_file('file', '视频');

```

显示
--

[](#显示)

在grid中显示，单图：

```
$grid->picture ( '图片' )->image ('http://test.com:81/storage/', 300);

```

多图:

```
$grid->picture ( '图片' )->display(function ($picture) {
    return json_decode($picture, true);
})->image ('http://test.com:81/storage/', 300);

```

\###可选方法

当然，以下各种方法也可以在config中直接定义

`disk`：选择存储磁盘

`extensions`：文件后缀

`mimeTypes`：文件类型

`mimeTypes`：文件类型

`fileSizeLimit`：文件上传大小

`fileNumLimit`：上传文件数量

`saveType`：多文件上传存储格式，json:\['a.jpg','b.jpg'\]

License
-------

[](#license)

Licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1832d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14324693?v=4)[Full stack grave](/maintainers/fsg-herbie)[@fsg-herbie](https://github.com/fsg-herbie)

---

Top Contributors

[![catlane66666](https://avatars.githubusercontent.com/u/170673244?v=4)](https://github.com/catlane66666 "catlane66666 (13 commits)")[![catlane](https://avatars.githubusercontent.com/u/22951693?v=4)](https://github.com/catlane "catlane (9 commits)")[![fsg-herbie](https://avatars.githubusercontent.com/u/14324693?v=4)](https://github.com/fsg-herbie "fsg-herbie (4 commits)")

---

Tags

extensionlaravel-admincatlanechunk\_file

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fsg-herbie-chunk-file-upload/health.svg)

```
[![Health](https://phpackages.com/badges/fsg-herbie-chunk-file-upload/health.svg)](https://phpackages.com/packages/fsg-herbie-chunk-file-upload)
```

###  Alternatives

[catlane/chunk-file-upload

文件上传小扩展，可支持大文件分块分片上传到七牛云or本地，优化您上传大文件的苦恼

284.9k](/packages/catlane-chunk-file-upload)[dianwoung/large-file-upload

An extension of laravel-admin for uploading large files

7745.7k2](/packages/dianwoung-large-file-upload)[jxlwqq/file-manager

file manager for laravel-admin

1215.6k](/packages/jxlwqq-file-manager)[laravel-admin-ext/file-browser

A file browser for laravel-admin

153.0k](/packages/laravel-admin-ext-file-browser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
