扫码关注官方订阅号
为什么图片上传成功文件名是空的?
闭关修行中......
可以在初始化中指定key函数,将预期的文件的文件名从key函数中return出来。
var uploader = Qiniu.uploader({ runtimes: 'html5,flash,html4', ..., init: { 'FilesAdded': function(up, files) { ..., }, ..., 'Key': function(up, file) { var key = "test/test/test.jpg"; return key; } });
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
可以在初始化中指定key函数,将预期的文件的文件名从key函数中return出来。