You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2012/12/16 23:16:12 UTC

[jira] [Commented] (CB-51) API: FileTransfer - Support PUT Method

    [ https://issues.apache.org/jira/browse/CB-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13533538#comment-13533538 ] 

Shazron Abdullah commented on CB-51:
------------------------------------

This is important also for uploads to Amazon S3, which requires the PUT verb. Not sure if this is as easy as creating a new FileUploadOptions setting, and changing the verb to PUT from POST in the native url connection.
                
> API: FileTransfer - Support PUT Method
> --------------------------------------
>
>                 Key: CB-51
>                 URL: https://issues.apache.org/jira/browse/CB-51
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Priority: Minor
>             Fix For: 2.4.0
>
>
> reported at: https://github.com/phonegap/phonegap-iphone/issues/178
> by: https://github.com/berb
> (This feature request is platform-agnostic and has been posted here due to the comments in #phonegap)
> While the current FileTransfer provides upload capabilities similar to browsers (using HTTP POST and multipart), it would be helpful to support PUT as well. 
> HTTP allows to create server-side resource using the PUT method, and many RESTful webservices make use of this. Being the only way to upload binary file content from a device to a web server, FileTransfer should additionally support PUT as method. Usage might be indicated via FileUploadOptions.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira