You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Simon MacDonald (Assigned) (JIRA)" <ji...@apache.org> on 2012/02/23 17:10:49 UTC
[jira] [Assigned] (CB-268) Resized photo URI's don't work with
FileTransfer.upload
[ https://issues.apache.org/jira/browse/CB-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon MacDonald reassigned CB-268:
----------------------------------
Assignee: Simon MacDonald (was: Joe Bowser)
> Resized photo URI's don't work with FileTransfer.upload
> -------------------------------------------------------
>
> Key: CB-268
> URL: https://issues.apache.org/jira/browse/CB-268
> Project: Apache Callback
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.3.0
> Reporter: Durham
> Assignee: Simon MacDonald
> Fix For: 1.4.0
>
>
> If I call "navigator.camera.getPicture" while specifying sourceType as PHOTOLIBRARY and a targetWidth/Height, the resulting URI that gets returned looks like this "file:///blah/blah/resize.jpg?12312123" . That ?123123 suffix on the end causes "new FileTransfer().upload(myUri,...)" to fail unless I manually remove the suffix from the URI. This seems like a poor design, especially since it's not obvious why the file upload fails (it just says 'code 1').
> It seems the suffix was added to resolve CB-17, but it seems like CB-17 could be resolved by putting the timestamp before the .jpg part as well, and then it wouldn't break FileTransfer.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira