sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Sling > Chunked File Upload Support
Date Wed, 06 Feb 2013 19:51:00 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=SLING&amp;forWysiwyg=true"
<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="">Chunked
File Upload Support</a></h2>
        <b>comment added</b> by              <a href="">Felix
    <div class="notificationGreySide">
       <p>Some comments:</p>

	<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>


    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>
       <a href="">View
       <a id="reply-30752537" href="">Reply
To This</a>


View raw message