Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

uploadStoredFiles() fails after adding blob (for autoUpload = false) #2065

Open
2 tasks done
sujayjaju opened this issue Oct 24, 2018 · 0 comments
Open
2 tasks done

Comments

@sujayjaju
Copy link

sujayjaju commented Oct 24, 2018

Type of issue

  • Bug report

Uploader type

  • Traditional
Bug Report

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:

  1. Set autoUpload = false
  2. Add a blob addFiles([blob])
  3. 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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant