itinance / itinance/react-native-fs

How can I tell if file is completed download and ready to be viewed?

Open
#553 7 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

How can I tell if file is completely finished downloading and ready to be viewed?

I am downloading images from server and placing them in the DocumentDirectoryPath, however, even after the download has finished (looped with downloadFile()) I noticed that the image may appear corrupt unless I use a long timeout before displaying.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.