uploadforlaravel-admin / bigfile
一款用于laravel-admin的分片上传组件,储存对象是七牛云
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Language:CSS
pkg:composer/uploadforlaravel-admin/bigfile
Requires
- php: >=7.0.0
 - encore/laravel-admin: ~1.6
 - zgldh/qiniu-laravel-storage: ^0.10.4
 
Requires (Dev)
- phpunit/phpunit: ~6.0
 
This package is auto-updated.
Last update: 2025-10-13 17:23:37 UTC
README
Requirements
laravel-admin >= 1.6
Installation
 composer require uploadforlaravel-admin/bigfile 
 php artisan vendor:publish --tag=laravel-admin-bigfile
Configurations
configuration file: config/admin.php
'extensions' => [
    'bigfile' => [
        // Set to false if you want to disable this extension
        'enable' => true,
        // If you want to set an alias for the calling method
        //'alias' => 'markdown',
        // Editor configuration
        'config' => [
            //file Host
            'host'=> 'http://www.baidu.cn/'
            'prefix'=> 'file'
        ]
    ]
],`
Use
  $form->bigfile('field_name')->options(['chunk_size'=> 3 * 1024 * 1024 ,'max_size'=> 5 * 1024 * 1024,'ext'=> ['exe']]);