Closed ghorbani-m closed 2 years ago
@ghorbani-m
For android we can replace reactContext.getFilesDir()
this with reactContext.getExternalCacheDir()
which is temp of android apps and leave the android to manage it.
from there you can decide what to do with it.
@farhoud, Exactly, here there is another case that used context.getCacheDir().
Rescive aslo sould return meta
Look like you satisfy with appdir
@farhoud, Exactly, here there is another case that used context.getCacheDir().
move the link to https://github.com/functionland/react-native-fula/discussions/8
The
file.receive
method gets the file from the Box and stores it on the phone's storage. If the file still exists on the phone the file will be overwritten and it causes unwanted manipulation of the user files, and in some circumstances, the user lost the original file.Reproduce issue
Issue: The edited file will be overwritten.
Proposal
The solution could be a temp folder to store the files and then if the app wants will move them to another place. Also, we can add a method to clear the temp folder.