9***@qq.com
9***@qq.com
  • 发布:2024-03-01 14:26
  • 更新:2024-03-01 14:26
  • 阅读:128

【报Bug】uni-file-picker 上传文件时进度并没有到100,就显示上传成功。但是并没有成功。

分类:uniCloud

产品分类: uniCloud/App

示例代码:
<uni-file-picker ref="files" :auto-upload="false" limit="1" @delete="deleteFile" @select="select"  
                @progress="progress" @success="success" @fail="fail" file-mediatype="all"  
                title="选择要上传的文件"></uni-file-picker>  
            <button v-if="hasSelect" class="btn_upload" type="primary" size="mini" @click="upload">上传文件</button>  

操作步骤:

uni-file-picker - 上传一个视频

预期结果:

正常上传

实际结果:

在进度没有达到100之前就已经显示上传成功了。

bug描述:

uni-file-picker 上传文件时进度并没有到100,就显示上传成功。但是并没有成功。

选择文件: {index: 0, progress: 2, tempFile: {…}}index: 0progress: 2tempFile: {…}[[Prototype]]: Object
选择文件: {index: 0, progress: 2, tempFile: {…}}
选择文件: {index: 0, progress: 2, tempFile: {…}}
App.vue:49 App Hide
选择文件: {index: 0, progress: 2, tempFile: {…}}
选择文件: {index: 0, progress: 3, tempFile: {…}}
上传成功 {tempFiles: Array(1), tempFilePaths: Array(1)}

{
"tempFiles": [
{
"extname": "mp4",
"name": "大于60s.mp4",
"path": "blob:http://localhost:8080/a819ccd1-1176-4deb-a1dd-832233e041df",
"size": 8444417,
"fileID": "",
"url": "",
"uuid": 1709274102890,
"status": "success",
"cloudPath": "1709274102888_0.mp4"
}
],
"tempFilePaths": [
""
]
}

当前进度才百分之三。

2024-03-01 14:26 负责人:无 分享
已邀请:

要回复问题请先登录注册