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.

On Android, appendExt is not being added to the localPath #171

Closed
@shilpan

Description

@shilpan

Here is my code:

export function downloadFile(file, url, contentType, size) {
  return (dispatch, getState) => {
    return RNFetchBlob
      .config({
        session: SESSION_NAME,
        fileCache: true,
        appendExt: 'mp4'
      })
      .fetch('GET', url)
      .then(res =>
        dispatch(addFile(file, res.path(), contentType, size)))
  }
}

The resulting file path on Android is: /data/user/0/com.stitchapp/files/RNFetchBlobTmp_faadb355-e693-45ef-aa6e-f5d18926bfc2.

Notice that .mp4 is missing. This issue does not occur on iOS.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions