[
https://issues.apache.org/jira/browse/CB-51?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13393592#comment-13393592
]
Samyak Bhuta commented on CB-51:
--------------------------------
It is of important priority. A practical use case is using backbone.js in
Cordova application. You require 'sync' method of backbone model or collection
to be changed, when you have file(s) (mostly images) that are part of your
model. In backbone.js PUT is used to do the 'update' operation of the famed
CRUD. As of now changing the server side API to accept POST for update
operation is the only work around.
> 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
>
> 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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira