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

Delete file from API use React-Native-Fetch-Blob #587

Open
roofiah opened this issue Nov 5, 2017 · 0 comments
Open

Delete file from API use React-Native-Fetch-Blob #587

roofiah opened this issue Nov 5, 2017 · 0 comments

Comments

@roofiah
Copy link

roofiah commented Nov 5, 2017

I want to remove the file from the API url using React-Native-Fetch-Blob, but it does not work. but when trying to test the file delete using Postman, its work.
this is my code

var dataToServer = { 'path' : this.state.path};

RNFetchBlob.fetch('DELETE', 'url', {
        'Authorization' : tokenJSON.access,
        'Content-Type' : 'application/json',
      }, JSON.stringify(dataToServer))
      .uploadProgress((written, total) => {
        console.log('uploaded', written / total)
      })
@roofiah roofiah changed the title Delete file from API use React-Native-Fetch-Blob? Delete file from API use React-Native-Fetch-Blob Nov 5, 2017
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