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.

Fetch with path always appends to file, doesn't overwrite #173

Closed
@membla

Description

@membla

RNFB: 0.9.6
RN: 0.36.1

    RNFetchBlob
    .config({
      path : dirs.DocumentDir + '/assets.xml'
    })
    .fetch('GET', 'http://path/to/assets.xml', {
      //some headers ..
    })
    .progress((received, total) => {
      this.setState({appContainerSourceProgress: received/total})
    })
    .then((res) => {
      console.log('The file saved to ', res.path())
    })

If assets.xml exists, new data is appended to the file, not overwritten. Documentation and #141 suggests otherwise.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions