uploadStoredFiles() fails after adding blob (for autoUpload = false)
Author: sujayjajuCreated Oct 24, 2018Updated Nov 16, 2018
Type of issue
- Bug report
Uploader type
- Traditional
Fine Uploader version
5.16.2
Browsers where the bug is reproducible
"Firefox"
Operating systems where the bug is reproducible
"Windows 10"
Exact steps required to reproduce the issue
For example:
- Set
autoUpload = false - Add a blob
addFiles([blob]) - Call
uploadStoredFiles()
All relevant Fine Uploader-related code that you have written
// src is a base64 encoded image
fetch(src)
.then(res => res.blob())
.then(blob => {
uploader.methods.addFiles([blob]);
uploader.methods.uploadStoredFiles();
})Detailed explanation of the problem
Blob uploads only work with auto upload. It fails if autoUpload is set to false and uploadStoredFiles() is called subsequently.It returns No files error
Source: FineUploader/fine-uploader