diff --git a/app/src/main/java/fr/free/nrw/commons/filepicker/UploadableFile.java b/app/src/main/java/fr/free/nrw/commons/filepicker/UploadableFile.java index 7df1cc9648..5e3a43bbe4 100644 --- a/app/src/main/java/fr/free/nrw/commons/filepicker/UploadableFile.java +++ b/app/src/main/java/fr/free/nrw/commons/filepicker/UploadableFile.java @@ -41,7 +41,7 @@ public UploadableFile(Uri contentUri, File file) { public UploadableFile(File file) { this.file = file; - this.contentUri = Uri.parse(file.getAbsolutePath()); + this.contentUri = Uri.fromFile(new File(file.getPath())); } public UploadableFile(Parcel in) {