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/11/15 05:07:47 UTC

[GitHub] artuska edited a comment on issue #260: File becomes [object Object] in FormData

artuska edited a comment on issue #260: File becomes [object Object] in FormData
URL: https://github.com/apache/cordova-plugin-file/issues/260#issuecomment-438918491
 
 
   About the Blob. There are a lot of weird stuff here about the Blob in Cordova.
   
   I used some custom file chooser (do not remember which exactly but you have to use custom file chooser, not `<input type="file">`) which returned `cdvfile` file path of the selected file → then I used `cordova-plugin-file` and it's `resolveLocalFileSystemURL` to get a link to the real file path → then I converted it to Blob and was able to sent it to the server the same way I sent File and then I wrote a comment here that everything works now... but all this was on Android API 21 emulator.
   
   When I installed my app with all my Blob stuff to the Android phone (the phone which had issues with file select)... Cordova did not allowed me to send a Blob outside the Cordova environment. That's it. You cannot send Blob, Cordova will throw you the SSL error. I dunno what it is and what to do about it, so I just found other way to deal with broken file select (by removing AndroidLaunchMode preference as I wrote above here in comments) and just stopped further dealing with the Blob.

----------------------------------------------------------------
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