incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Sling > Chunked File Upload Support
Date Wed, 06 Feb 2013 19:51:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=SLING&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/SLING/Chunked+File+Upload+Support?focusedCommentId=30752537#comment-30752537">Chunked
File Upload Support</a></h2>
        <h4>Page
        <b>comment added</b> by              <a href="https://cwiki.apache.org/confluence/display/~fmeschbe">Felix
Meschberger</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
       <p>Some comments:</p>

<ul>
	<li>I second Julian Reschke's proposal to return 201/Created from the POST requests.
The Location header should be set to the URL use to test for chunked upload; except for the
final POST, which of course returns the URL to the actual binary uploaded.</li>
	<li>Request Extension for POST: Yes, we need a request extension to properly assign
selectors. Suggest to use <tt>res</tt> instead of <tt>html</tt>. We
also use this extension in the Default GET Servlet to request streaming the result in case
we need an extension.</li>
	<li>Chunk numbers: Using chunk numbering as propose implies that there is a predefined
size of each chunk. The respective specification is missing in this proposal. Otherwise, instead
of using chunk numbers you could use size ranges. For example the discovery request returns
the size of contiguous data already uploaded successfully. The POST requests in indicate the
file offset (the number of bytes sent is equal to the Content-Length header.</li>
	<li>If the check request has to has an extension, this should be JSON to reflect the
actual data format expected in the response. This URL should (see above) be used as the Location
header on the 201/CREATED responses to the POST request.</li>
</ul>

    </div>

        
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://cwiki.apache.org/confluence/display/SLING/Chunked+File+Upload+Support?focusedCommentId=30752537#comment-30752537">View
Online</a>
              |
       <a id="reply-30752537" href="https://cwiki.apache.org/confluence/display/SLING/Chunked+File+Upload+Support?replyToComment=30752537#comment-30752537">Reply
To This</a>
           </div>

</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message