Comments (2)
用七牛云 sdk,就没有必要用 layui upload 了,建议将七牛云 sdk 封装为专用的上传组件。
from layui.
我是这么上传的,上传的接口,变成获取token请求,然后在done 方法里,上传文件。
此时小文件没有问题。上传大文件时,获取token的接口会带着file,导致第一个接口超时。
var curFile = null;
var uploadInst = upload.render({
elem: "#upload",
url: "/api/getQiniuToken",
accept: "*",
before: function (obj) {
obj.preview(function (index, file, result) {
curFile = file;
});
},
done: function (res) {
// qiniu-js 上传 curFile
},
error: function () {
},
});
from layui.
Related Issues (20)
- 当后台传的数据非正常数据时,前台导出会错误 HOT 1
- 表格中的文本框问题 HOT 3
- 关于layui-form表单<提示问题> HOT 3
- layer.tab打开多个iframe失败 HOT 1
- IOS QQ v9.0.71 内置浏览器无法使用 Upload组件 HOT 1
- 下拉筛选时不能**及时**变化,需要再次点开下拉框才会变化 HOT 2
- 表格的行右击事件如何获取鼠标所在列? HOT 9
- Tree组件的复选框半选状态 HOT 1
- 单选框(<input type="radio">)元素的name属性的值含空格会导致单选框变成多选【纯html没有这个问题】 HOT 1
- Layer弹窗位置不正确 HOT 2
- 轮播组件:点击图片利用HTML DOM Element remove() 方法动态删除图片操作出现错误 HOT 1
- 轮播组件:在form表单下,点击图片利用HTML DOM Element remove() 方法动态删除图片操作出现错误 HOT 6
- 请问使用table异步请求分页时,第三方服务使用skip分页要怎么处理?
- 表格默认导出XLSX的功能,怎么没有了?只有CSV格式。建议默认开启默认导出XLSX的功能,谢谢! HOT 3
- 按钮事件被多次提交,有没有遮罩或LOADING类的方法档一下.不让点击按钮,禁用了都没用.主要是能根本上解决只提交一次 HOT 3
- Slider 滑块,change事件返回值问题 HOT 2
- form表单提交事件textarea文本数据不同步 HOT 2
- Select组件能否优化搜索,增加设置是否启用非连续字符匹配,之前虽然没有非连续匹配,但是匹配连续字符是很好用的 HOT 1
- Table中嵌套table后,全选复选框失效,v2.9.11之前的版本是正常的,希望能修复一下
- 树组件 tree 使用 Checkbox 时二次读取问题 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from layui.