Skip to content

eonlab/large-file-upload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

open-admin extension

Extension for OpenAdmin forked and adapted from https://github.com/laravel-admin-extensions/large-file-upload

Uses AetherUpload v2.0

OpenAdmin doesn't use JQuery, to use this extension you have to install Jquery adding this line to the bootstrap.php file

Admin::headerJs('/somepath/jquery.min.js');

===

1,安装:

composer require dianwoung/large-file-upload

2,发布AetherUpload-laravel的静态资源:

php artisan aetherupload:publish

3,上传文件配置信息在config/aetherupload.php文件中修改(详细信息请参考说明文档)

4,发布本扩展包的静态资源:

php artisan vendor:publish --tag=large-file-upload

5,注册进laravel-admin,在app/Admin/bootstrap.php中添加以下代码:

Encore\Admin\Form::extend('largefile', \Encore\LargeFileUpload\LargeFileField::class);

6,在控制器中直接调用就可以了:

$form->largefile('ColumnName', 'LabelName');

效果如图:

基本样式

上传中

新版2.0分支更新的内容

1,支持了分组的配置(不填的话,默认file分组)

$form->largefile('ColumnName', 'LabelName')->group('groupName');

2,编辑状态下文件按钮会显示当前的文件名

3,依赖包AetherUpload-Laravel更新到了2.0版本

About

An Extension For Laravel-Admin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 93.0%
  • PHP 5.2%
  • Blade 1.8%