react-native-fs icon indicating copy to clipboard operation
react-native-fs copied to clipboard

Can not add files to "/storage/emulated/0" directory

Open jankoJelic opened this issue 2 years ago • 14 comments

Hello I have been using: "react-native": "0.65.1" "react-native-fs": "^2.18.0"

I can RNFS.mkdir to "storage/emulated/0/Download/myApp", but I can not .mkdir "storage/emulated/0/myApp"

[Error: Directory could not be created]

I have both write and read permissions, and it works perfectly in subfolders, but I want to create in in the main directory like some other apps already do on my device.

jankoJelic avatar Mar 05 '22 15:03 jankoJelic

Did you find any solution??? I am also struggling with this too

anwersolangi avatar Mar 13 '22 12:03 anwersolangi

No, still having the same problem. I have decided to put everything into 0/Android folder

jankoJelic avatar Mar 13 '22 14:03 jankoJelic

No, still having the same problem. I have decided to put everything into 0/Android folder

That's good, but not user-friendly as other apps, also I'm thinking of moving to another library

anwersolangi avatar Mar 13 '22 15:03 anwersolangi

I already tried rn-fetch-blob but the same issue occurs. So something else could be the problem.

jankoJelic avatar Mar 13 '22 15:03 jankoJelic

I have the same problem. please fix this!

utiliter avatar Mar 13 '22 15:03 utiliter

I have same issue.

NasirAbbasi1 avatar Mar 14 '22 12:03 NasirAbbasi1

I also have the same issue.

ianic2 avatar Mar 14 '22 13:03 ianic2

Same here in Android 11 even if I do give the permission to the dir using scoped-storage.

RupmalyaK avatar Mar 16 '22 07:03 RupmalyaK

Hey guys, does anyone found any solution? Im with the same problem in some devices with Android 11

desenvolvedorHK avatar Mar 31 '22 11:03 desenvolvedorHK

i'm having same problem for android 11+

fkhrrz avatar Apr 07 '22 06:04 fkhrrz

please help us!

Im trying to move a file from the android folder to the external directory of the phone, but i get this error. HELP!

Leslie717 avatar Jul 11 '22 11:07 Leslie717

same problem here

hms-douglas avatar Aug 08 '22 22:08 hms-douglas

I have the same issue.

my-yy avatar Dec 01 '22 02:12 my-yy

I'm same problem too. my expect is that download file that from url to /storage/emulated/0/Downloads but file manager of mobile system can't scan it. I have to use Professional file manager to find the file that downloaded into path /storage/emulated/0/Downloads.

This Q&A provides a method to solve such problems that write file to Android external storage https://stackoverflow.com/questions/63392170/write-files-to-the-android-external-storage-using-react-native-fs

Uploading pasteboard-image_2023-12-11 06-51-20.png…

VitaminC1989 avatar Dec 11 '23 06:12 VitaminC1989