You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Artem Golovinsky (JIRA)" <ji...@apache.org> on 2015/07/16 00:12:05 UTC
[jira] [Comment Edited] (CB-488) FileTransfer.upload does not
follow redirects on Android
[ https://issues.apache.org/jira/browse/CB-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14628845#comment-14628845 ]
Artem Golovinsky edited comment on CB-488 at 7/15/15 10:11 PM:
---------------------------------------------------------------
What is status? was it fixed?
I get the same problem on 1.2.0 version of plugin from git - https://github.com/apache/cordova-plugin-file-transfer/tree/r1.2.0
was (Author: garrys_game):
What is status? was it fixed?
I get the same problem on 1.2.0 version of plugin.
> FileTransfer.upload does not follow redirects on Android
> --------------------------------------------------------
>
> Key: CB-488
> URL: https://issues.apache.org/jira/browse/CB-488
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 1.3.0, 1.4.0, 1.5.0
> Environment: Andoid device: Samsung Galaxy S Plus
> Reporter: Wouter
> Assignee: Andrew Grieve
> Fix For: Master
>
>
> We are trying to upload a local move file to Youtube though the Youtube API. This API works in such a way that after uploading a file a redirect is done to another location. Unfortunately the Android implementation of FileTransfer does not follow this redirect. (The iPhone implementation does follow the redirect.)
> Steps to reproduce:
> - Create a FileTransfer instance and call the upload method following the example at http://docs.phonegap.com/en/1.6.0/cordova_file_file.md.html#FileTransfer
> - The server the file is posted to (in the sample this is http://some.server.com/upload.php) should do a redirect to another location to reproduce this issue.
> Actual Result:
> - In the success callback the FileUploadResult.responseCode is 302, and the FileUploadResult.response is "Temporarily Moved" (or similar depending on the webserver that responded with the redirect).
> Expected Result:
> - The redirect is followed and the result of the new location is retreived and represented in the FileUploadResult instance.
> Or (but lower preference):
> - The FileUploadResult instance also contains the HTTP headers that were sent with the response so that the Location header (containging the url to redirect to) is known.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org