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.

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

Open
@roofiah

Description

@roofiah

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)
      })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions