H5页面苹果手机拍照上传失败,报错614文件已存在
Closed this issue · 0 comments
Hoexhe commented
html页面调用jssdk上传文件:
选择文件上传是成功的,但是苹果相机拍照上传后,一直报 614 文件已存在。(文件名为 uuid ,尝试按官网教程说的传入 null 和 undefined 都是 614 错误)
官网描述
[key: 文件资源名,为空字符串时则文件资源名也为空,为 null 或者 undefined 时则自动使用文件的 hash 作为文件名]
环境
"qiniu-js": "^3.4.1",
"vant": "^2.12.47",
"vue": "^2.6.12",
业务代码
const fileName = `${uuid()}.${fileType}`
const observable = qiniu.upload(file1, fileName, res.data.token, {}, {})
请问如何解决?