[ https://issues.apache.org/jira/browse/SLING-2707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13580635#comment-13580635 ]
Shashank Gupta commented on SLING-2707: --------------------------------------- >Why do we need two protocols? I really don't see the use case for PATCH here, >unless we'd be manipulating a resource-in-place (which we do not). Yes we are not updating resource-in-place. It was added as per suggestion on https://issues.apache.org/jira/browse/SLING-2707?focusedCommentId=13559699&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13559699. I have no objection in removing it. > returning 201 every time with the same Location header field looks wrong to > me. Added as per suggestion https://issues.apache.org/jira/browse/SLING-2707?focusedCommentId=13559551&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13559551. IMO, since no resource get created until endpoint receives last chunk so 200 OK should be returned for first/intermediate chunk uploads. In last chunk upload since resource gets created, response 201 CREATED should be returned. https://issues.apache.org/jira/browse/SLING-2707?focusedCommentId=13559556&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13559556 > Support of chunked file upload into Sling > ----------------------------------------- > > Key: SLING-2707 > URL: https://issues.apache.org/jira/browse/SLING-2707 > Project: Sling > Issue Type: New Feature > Components: General > Reporter: Shashank Gupta > Attachments: uploadclient.jar > > > Use cases: > 1. Large file upload - With high speed internet connections, advent of cloud > and HD going mainstream, Sling should support large files (> 2GB) upload. > 2. Fault tolerant uploads - Sling should provide capability to resume upload > from failure point. It should not require client to restart the complete > upload process. > 3. Faster upload: Sling should support its clients to initiate multiple > connection and upload file chunks in parallel. -- 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