Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot delete videos from device #19

Open
shiba4life opened this issue Jan 15, 2016 · 2 comments
Open

Cannot delete videos from device #19

shiba4life opened this issue Jan 15, 2016 · 2 comments

Comments

@shiba4life
Copy link

I'm trying to remove videos after they have been uploaded using react-native-fs. Even though react-native-fs is unlinking the file and it cannot be accessed anymore, the memory footprint for the app does not change. Is there a way to remove the recorded video files?

I raised this issue with react-native-fs repo but it might have something to do with where the videos are stored.

itinance/react-native-fs#41 (comment)

@maxs15
Copy link
Owner

maxs15 commented Jan 21, 2016

Hi,
Well normally the videos are not saved in the asset library but in a temporary directory, is the video removed if you close/open the app ?
Maybe you could directly check if the file still exists after your delete it.

@faceyspacey
Copy link
Collaborator

@tomtang539 did you ever figure this out? Also, how are you moving the video around? I actually in some cases want to keep the file locally on the device. My plan was just to move the private file using react-native-fs's moveFile method in the save callback. Do I need to also call unlink on the original temp file and does it work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants