Skip to content

how to get excel file with react-native-fetch-blob #255

Open
@BBEDERRAR

Description

@BBEDERRAR

I want to fetch an excel file from the server but i have a warning message

`

RNFetchBlob error when sending request : null

`this is the code :

const url ='http://manafeth.ncsi.gov.om/admin/download/countries/import/2018/en?portTypes=land,air,sea&size=100000';
    RNFetchBlob
        .config({
            fileCache : true,
        })
        .fetch('GET', url)
        .then((res) => {
            console.log('The file saved to ', res.path())
        }).catch((err)=>{
        console.log('The error is ', err)

    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions