wkh237 / react-native-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.61k stars 1.6k forks source link

Saving in the downloads directory doesnt show the file, only in File Manager #203

Open BogdanHossu opened 7 years ago

BogdanHossu commented 7 years ago

I am using RN 0.34

When I am saving one file I am specifying the download folder, the file appears in the file manager on downloads folder but not in the actual downloads "app". Is there a solution for this?

wkh237 commented 7 years ago

Have you scanned the file with 'fs.scanFile' ? On android you should do it every time change media database.

see document

BogdanHossu commented 7 years ago

Sorry for not mentioning this, yes I am doing that: RNFetchBlob.fs.scanFile([{path: imageLocation, mime: info.headers['Content-Type']}]);

wkh237 commented 7 years ago

Looks like media scanner can not add files to Downloads app, it can only add files to media apps (for example, Gallery). But you can try to use Download Manager, I think files downloaded by Download Manager will appear in Downloads app.

ershubhamgarg commented 6 years ago

@wkh237 @BogdanHossu I am downloading a video from remote url using react native fetch blob but it does not appear in the Camera roll. Please assist.