How to locates downloaded file on device

I am downloading a file from using FileSystem.downloadAsync(). it is downloaded successfully and runs on device well but when i am save that file on device i am not been able to find in memory, the path where it is saving file on ios is
file:///var/mobile/Containers/Data/Application/12BC6EB4-C2C6-4754-B738-96EED6347593/Documents/ExponentExperienceData/%2540mghazanfar89%252FDancingBook/TEST.mp4.
what could be the possible solution if want to open my downloaded video with like gallery or camera roll.
here is my code .

FileSystem.downloadAsync(
https://s3.amazonaws.com/dancebook-development/mov.mp4’,
FileSystem.documentDirectory+‘TEST.mp4’
) .then(({ uri }) => {
console.log(‘uri is ::’, uri);
self.setState({video:uri, showVideo:true});
console.log('Finished downloading to ', uri);
})
.catch(error => {
console.error(error);
})

Hey @mghazanfar89,

You call pass the uri to either our MediaLibrary API or React Native’s CameraRoll API and save the video to Gallery or Photos. The MediaLibrary gives you a bit more power to do things such as place it in a certain album or create a new album altogether.

https://docs.expo.io/versions/v29.0.0/sdk/media-library
https://facebook.github.io/react-native/docs/cameraroll#savetocameraroll

Cheers,

Adam

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.