Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Parallel downloads in IOS are broken #263

Closed
@francisco-sanchez-molina

Description

When I launch multiple downloads, the promises are mixed. Especially when some downloads return 404. Example code:

download(url) {
RNFetchBlob
  .config({
    timeout: 7000,
    path: destination
  })
  .fetch('GET', url, this._getHeaders())
  .then(resp => {
    if (url !== resp.info().redirects[0]) {
      console.warn('bug!')
    })
}

['url1', 'url2', 'notFoundUrl3'].forEach(url => download(url))

Thanks

RN 0.41.2
RNFB all versions

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions