EinfachHans / cordova-plugin-advanced-imagepicker

Cordova Plugin for an advanced (multiple) ImagePicker
28 stars 48 forks source link

Path of image is not correct (no filename and extension) #25

Closed cmarian5 closed 7 months ago

cmarian5 commented 2 years ago

Hello,

The result returned from the plugin is: content://media/external/images/media/681 But I need to get the real path of the image containing both filename and extension in order to upload it.

How I can get the real path?

clarklight commented 1 year ago

@cmarian5 Did you manage to figure out how to get the file URI path?

clarklight commented 1 year ago

I managed to get it working with the filepath plugin, but that plugin is deprecated, but thats the method to get it to get the absolute file path, and upload.

Mr-Anonymous commented 10 months ago

I noticed the same issue too. It seems to work in some Android devices whereas some Android 12/13 devices shows the path as: [filepath](content:\/\/media\/external\/images\/media\/1000059240) which fails when uploading to the server since it is unable to identify the file type.