You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/12/11 09:59:27 UTC

[GitHub] martinrcooper opened a new issue #277: Cordova resolveLocalFileSystemURL doesn't return a file object on Windows

martinrcooper opened a new issue #277: Cordova resolveLocalFileSystemURL doesn't return a file object on Windows
URL: https://github.com/apache/cordova-plugin-file/issues/277
 
 
   I know this has been asked before and closed:
   File becomes [object Object] in FormData #260
   but there was never a fix and the workarounds don't work for me, so I am opneing a new issue.
   In my case, opening a file with resolveLocalFileSystemURL works in Android - I see [object File], but not in Windows 10 - I see [object Object]. This is a big deal for me as it apears to break my file upload in Windows 10 - see https://stackoverflow.com/questions/53670802/cordova-resolvelocalfilesystemurl-doesnt-return-a-file-object-on-windows
   I currently can't see any way to upload a file on Windows 10 - the examples in the cordova-plugin-file documentation all use FileReader.readAsArrayBuffer which is not supported with on Windows 10 and I can't find any example on the internet using readAsBinaryString. I tried the example, using readAsBinaryString as a direct replacement for readAsArrayBuffer but the upload fails. Also cordova-plugin-file-transfer is deprecated so I don't want to use that (even if it works with Wndows 10).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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