Can Cordova files be uploaded by javascript? -
it's first question on stackoverflow, please gentle! :)
i'm using cordova (2.4.0rc1) upload photographic camera pics amazon. found nice uploader s3_direct_uploader (s3_direct_uploader 0.0.8) , got working , integrated rails server. i'm trying same cordova-based "browser-with-camera".
i can photographic camera take picture, , can resulting file uri, , phone call fileentry.file() gets me looks file object (but in fact object of type object).
when seek pass file-like object s3 direct uploader, right # of bytes uploaded amazon, actual file on amazon text "[object object]".
is possible me proceed in direction? can trick webview creating real file object points actual picture? (note: memory reasons, don't want load image memory , create blob.) or have figure out how cordova's file uploader cors amazon?
thanks in advance answers , suggestions on how can improve question.
there's no way trick webview creating real file object points actual picture. apparently security feature.
instead, ended using cordova's file upload mechanism transfer file amazon using header info provided s3_direct_uploader. best direction go.
cordova file-upload camera amazon
No comments:
Post a Comment