We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
null
1 parent d0d1e34 commit 7552db7Copy full SHA for 7552db7
FileReader.js
@@ -344,6 +344,11 @@
344
// https://github.com/RonRadtke/react-native-blob-util/issues/117
345
path = decodeURIComponent(path);
346
347
+ // Android need this otherwise startsWith "content://com.android.externalstorage.documents/document/primary:..." will
348
+ // `failed to stat path "null"
349
+ // because it does not exist or it is not a folder` as err.message
350
+ path = path.replace(/^content:\/\/com.android.externalstorage.documents\/document\/primary:/, '/sdcard/');
351
+
352
fs.stat(path).then(function(stat) {
353
file.lastModified = stat.lastModified;
354
file.lastModifiedDate = new Date(stat.lastModified);
0 commit comments