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

Alexander Klimetschek commented on SLING-2707:
----------------------------------------------

Actually, since my proposal is append-only, you only need a request 
(POST/PATCH) somewhat indicating that this is appending to the existing binary. 
The Range/Content-Range headers aren't fully designed for uploads. Found this 
proposal which is quite close: 
http://code.google.com/p/gears/wiki/ResumableHttpRequestsProposal

> The reason we are not doing range uploads because sling endpoint won't be 
> extensible to support parallel chunk upload.
As noted, I don't see this as a goal at all, so a lot of complexity can be 
stripped.

> OPTIONS should tell client whether sling support chunk upload
Not only Sling...

> how request will hit my endpoint if don't specify selector.
I mean the range-upload instead of chunks.

>>POST /content/dam/dam-folder/asset.pdf.chunk.2.html
> [chunk, 2 ] are selector here. correct ?
Yes, considering /content/dam/dam-folder/asset.pdf exists as resource.

> implementation detail. for extensible parallel connection design/protocol, it 
> require to keep chunks temporary. 
Well, exposing a certain URL format is not an implementation detail :-) And 
btw, it's not restful - the client has to know how the chunk mechanism works 
(but that's probably necessary in case you want to do chunks).


                
> 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

Reply via email to