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

Unable to re write file if the same file was deleted manually from Phone file system: Android #875

Open
Rishabh02 opened this issue Jul 12, 2024 · 0 comments

Comments

@Rishabh02
Copy link

Hello,
I am unable to re write file on Android Samsung devices if the same named file was deleted from phone's file system manually.
Getting below error

{ "nativeStackAndroid": [], "userInfo": null, "message": "File '/storage/emulated/0/Download/myApp/0690Q000004lHWRQA2.jpeg' does not exist and could not be created", "code": "ENOENT" }

My Steps to reproduce

  1. write file using RNFetchBlob.fs.writeFile(filePath, updatedData.content, 'base64')
  2. Go to file destination in Android Phone
  3. Delete the same file
  4. Try to write file again

Below is my code for Writing file

RNFetchBlob.fs.writeFile(filePath, updatedData.content, 'base64') .then(this._onSuccess) .catch(err => { console.log('%c%s', 'color: red', '[ERROR] writeFile 8888', err); this._onError(err); });

I am facing this issue on Android samsung device
Samsung A14
Android OS: 14

Any Help will be appreciated

Thanks,
Rishabh

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

1 participant