j3k0 / cordova-plugin-openwith

Get your Cordova App in the O.S. "Share" menu on iOS and Android
MIT License
138 stars 114 forks source link

file path in ios #46

Open sotos89 opened 5 years ago

sotos89 commented 5 years ago

when i want to upload a photo in ios from share as i can see i don't have the photo file path. The only think i have that look like path is extension://index=0 but it does not work while i am trying to upload photo.

optimusprime13 commented 5 years ago

From iOS 12 onwards, the file content is obtained on simulator. Did you test on device ?

sotos89 commented 5 years ago

yes i tested on simulator and device as well, because of i am using filetransfer plugin to upload fie and it doesn't support base64, the workaround i found is from base64 to create a blob file, copy it in a temporary file and then I could upload it. Its not the best way but it's a solution and it works.

skurgansky-sugarcrm commented 3 years ago

same here. Had to go on with base64->blob parsing. Can't get image name, but anyway I guess name is not very useful on iOS