You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "thirdwheel (via GitHub)" <gi...@apache.org> on 2023/03/06 22:25:52 UTC

[GitHub] [cordova-plugin-camera] thirdwheel commented on issue #622: Can't access to file photolibrary with cordova ios 6.1.0 and wkwebview

thirdwheel commented on issue #622:
URL: https://github.com/apache/cordova-plugin-camera/issues/622#issuecomment-1457110879

   > If using a custom scheme, the WebView won't allow to load file urls in img/video tags (nor fetch them, nor anything). cordova-ios added a helper method to convert file urls to urls that have the scheme and the WebView can understand.
   > 
   > `window.WkWebView.convertFilePath('your/file/path');`
   > 
   > I've created an issue in cordova-ios to document it [LINK REDACTED]
   
   This didn't work for me, but what did work was changing the destination type to DATA_URL - note that it won't actually give you a data URL, it'll give you the base64 encoded contents, but I can't imagine it giving you something other than the encoding type you defined.


-- 
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: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org