Download the PHP package putyy/laravel-admin-webupload without Composer
On this page you can find all versions of the php package putyy/laravel-admin-webupload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download putyy/laravel-admin-webupload
More information about putyy/laravel-admin-webupload
Files in putyy/laravel-admin-webupload
Download putyy/laravel-admin-webupload
More information about putyy/laravel-admin-webupload
Files in putyy/laravel-admin-webupload
Vendor putyy
Package laravel-admin-webupload
Short Description laravel-admin 前端上传文件功能封装......
License MIT
Homepage https://github.com/putyy/laravel-admin-webupload
Package laravel-admin-webupload
Short Description laravel-admin 前端上传文件功能封装......
License MIT
Homepage https://github.com/putyy/laravel-admin-webupload
Keywords extensionlaravel-admin
Please rate this library. Is it a good library?
Informations about the package laravel-admin-webupload
laravel-admin-webupload
laravel-admin 前端直传封装
安装
使用
这里也可以自行实现 需返回必要的json结果
新建控制器如: UploadController, 继承\Pt\LaravelAdminWebUpload\Http\Controllers\WebUploadController 实现对应的方法
可以参考 tests/TestUploadController.php 实现
添加如下路由
表单使用
$form新增了四个字段类型: imageKit、audioKit、videoKit、fileKit、rewriteSubmitKit
除了rewriteSubmitKit其他的可以指定上传属性(data-max、data-scene、data-other)以及上传到指定平台(toQiniu、toAliyun、toLocal)
data-max: 限制上传文件的大小
data-scene、data-other、data-platform会传到获取上传信息的接口
rewriteSubmitKit 可指定变量: scene_url(上传所需信息获取地址 默认: /admin/upload-scene)
举例
单文件:
多文件(增加了kitFiles方法):
PS: 更多用法请看源码
All versions of laravel-admin-webupload with dependencies
PHP Build Version
Package Version
The package putyy/laravel-admin-webupload contains the following files
Loading the files please wait ....