clarklight opened a new issue #509: URL: https://github.com/apache/cordova-plugin-file/issues/509
**The situation** I had been browsing through many other threads like this one https://github.com/apache/cordova-plugin-file/issues/426 that talked about it would only affect cordova.file.external* But every single one of the folder or directory, i can't read from, Nor can i write to any other folder, i can only write to the InternalStorage/Download folder. var folderpath = 'file:///storage/emulated/0/Download'; window.resolveLocalFileSystemURL(folderpath, function(dir) { dir.getFile(filename, {create:true}, function(file) { file.createWriter(function(fileWriter) { fileWriter.write(DataBlob); }, function(err){ }); }); }); When i add the photo file:///storage/emulated/0/Download/photoimg_id=1624.png to src tag, it will call the Not allowed to load local resource: error. I calls the same error even i am using cordova.file.dataDirectory or any other folder. I also tried to just use the example in the ReadMe. window.requestFileSystem(LocalFileSystem.PERSISTENT, 5 * 1024 * 1024, function (fs) { console.log('file system open: ' + fs.name); getSampleFile(fs.root); }, onErrorLoadFs); And saved that image, and tried to append the SRC from FileEntry.nativeURL, it calls the Not allowed to load local resource: error again. Currently i simply have no way to display an image from images stored inside the device. **Platform** Android 11 Cordova 10.0.0 Cordova-plugin-file 6.0.2 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
