<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<!-- generated by https://github.com/cabo/kramdown-rfc version 1.7.17 (Ruby 2.6.4) -->
<?rfc-ext html-pretty-print="prettyprint https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"?>
<rfc xmlns:x="http://purl.org/net/xml2rfc/ext"
      category="std"
      consensus="true"
      docName="draft-ietf-httpbis-resumable-upload-04"
      ipr="trust200902"
      sortRefs="true"
      symRefs="true"
      tocInclude="true">
   <x:feedback template="mailto:ietf-http-wg@w3.org?subject={docname},%20%22{section}%22\&amp;amp;body=%3c{ref}%3e:"/>
   <front>
      <title abbrev="Resumable Uploads">Resumable Uploads for HTTP</title>
      <author fullname="Marius Kleidl"
               initials="M."
               role="editor"
               surname="Kleidl">
         <organization>Transloadit</organization>
         <address>
            <email>marius@transloadit.com</email>
         </address>
      </author>
      <author fullname="Guoye Zhang"
               initials="G."
               role="editor"
               surname="Zhang">
         <organization>Apple Inc.</organization>
         <address>
            <email>guoye_zhang@apple.com</email>
         </address>
      </author>
      <author fullname="Lucas Pardue"
               initials="L."
               role="editor"
               surname="Pardue">
         <organization>Cloudflare</organization>
         <address>
            <email>lucas@lucaspardue.com</email>
         </address>
      </author>
      <date day="08" month="July" year="2024"/>
      <area>ART</area>
      <workgroup>HTTP</workgroup>
      <keyword>Internet-Draft</keyword>
      <abstract><?line 65?>
         <t>HTTP clients often encounter interrupted data transfers as a result of canceled requests or dropped connections. Prior to interruption, part of a representation may have been exchanged. To complete the data transfer of the entire representation, it is often desirable to issue subsequent requests that transfer only the remainder of the representation. HTTP range requests support this concept of resumable downloads from server to client. This document describes a mechanism that supports resumable uploads from client to server using HTTP.</t>
      </abstract>
      <note removeInRFC="true" title="About This Document">
         <t>Status information for this document may be found at <eref target="https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/"/>.</t>
         <t>Discussion of this document takes place on the HTTP Working Group mailing list (<eref target="mailto:ietf-http-wg@w3.org"/>), which is archived at <eref target="https://lists.w3.org/Archives/Public/ietf-http-wg/"/>. Working Group information can be found at <eref target="https://httpwg.org/"/>.</t>
         <t>Source for this draft and an issue tracker can be found at <eref target="https://github.com/httpwg/http-extensions/labels/resumable-upload"/>.</t>
      </note>
   </front>
   <middle><?line 69?>
      <section anchor="introduction">
         <name>Introduction</name>
         <t>HTTP clients often encounter interrupted data transfers as a result of canceled requests or dropped connections. Prior to interruption, part of a representation (see <xref section="3.2" sectionFormat="of" target="HTTP"/>) might have been exchanged. To complete the data transfer of the entire representation, it is often desirable to issue subsequent requests that transfer only the remainder of the representation. HTTP range requests (see <xref section="14" sectionFormat="of" target="HTTP"/>) support this concept of resumable downloads from server to client.</t>
         <t>HTTP methods such as POST or PUT can be used by clients to request processing of representation data enclosed in the request message. The transfer of representation data from client to server is often referred to as an upload. Uploads are just as likely as downloads to suffer from the effects of data transfer interruption. Humans can play a role in upload interruptions through manual actions such as pausing an upload. Regardless of the cause of an interruption, servers may have received part of the representation before its occurrence and it is desirable if clients can complete the data transfer by sending only the remainder of the representation. The process of sending additional parts of a representation using subsequent HTTP requests from client to server is herein referred to as a resumable upload.</t>
         <t>Connection interruptions are common and the absence of a standard mechanism for resumable uploads has lead to a proliferation of custom solutions. Some of those use HTTP, while others rely on other transfer mechanisms entirely. An HTTP-based standard solution is desirable for such a common class of problem.</t>
         <t>This document defines an optional mechanism for HTTP that enables resumable uploads in a way that is backwards-compatible with conventional HTTP uploads. When an upload is interrupted, clients can send subsequent requests to query the server state and use this information to send the remaining data. Alternatively, they can cancel the upload entirely. Different from ranged downloads, this protocol does not support transferring different parts of the same representation in parallel.</t>
      </section>
      <section anchor="conventions-and-definitions">
         <name>Conventions and Definitions</name>
         <t>The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>", "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as described in BCP 14 <xref target="RFC2119"/>
            <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.</t>
         <?line -18?>
         <t>The terms Byte Sequence, Item, String, Token, Integer, and Boolean are imported from <xref target="STRUCTURED-FIELDS"/>.</t>
         <t>The terms client and server are from <xref target="HTTP"/>.</t>
      </section>
      <section anchor="overview">
         <name>Overview</name>
         <t>Resumable uploads are supported in HTTP through use of a temporary resource, an <em>upload resource</em>, that is separate from the resource being uploaded to (hereafter, the <em>target resource</em>) and specific to that upload. By interacting with the upload resource, a client can retrieve the current offset of the upload (<xref target="offset-retrieving"/>), append to the upload (<xref target="upload-appending"/>), and cancel the upload (<xref target="upload-cancellation"/>).</t>
         <t>The remainder of this section uses an example of a file upload to illustrate different interactions with the upload resource. Note, however, that HTTP message exchanges use representation data (see <xref section="8.1" sectionFormat="of" target="HTTP"/>), which means that resumable uploads can be used with many forms of content -- not just static files.</t>
         <section anchor="example-1-complete-upload-of-file-with-known-size">
            <name>Example 1: Complete upload of file with known size</name>
            <t>In this example, the client first attempts to upload a file with a known size in a single HTTP request to the target resource. An interruption occurs and the client then attempts to resume the upload using subsequent HTTP requests to the upload resource.</t>
            <t>1) The client notifies the server that it wants to begin an upload (<xref target="upload-creation"/>). The server reserves the required resources to accept the upload from the client, and the client begins transferring the entire file in the request content.</t>
            <t>An informational response can be sent to the client, which signals the server's support of resumable upload as well as the upload resource URL via the Location header field (<xref section="10.2.2" sectionFormat="of" target="HTTP"/>).</t>
            <figure anchor="fig-upload-creation" title="Upload Creation">
               <artset>
                  <artwork type="svg">
                     <svg xmlns="http://www.w3.org/2000/svg"
                           class="diagram"
                           font-family="monospace"
                           font-size="13px"
                           height="320"
                           stroke-linecap="round"
                           text-anchor="middle"
                           version="1.1"
                           viewBox="0 0 520 320"
                           width="520">
                        <path d="M 8,48 L 8,304" fill="none" stroke="black"/>
                        <path d="M 368,48 L 368,304" fill="none" stroke="black"/>
                        <path d="M 512,144 L 512,176" fill="none" stroke="black"/>
                        <path d="M 16,80 L 360,80" fill="none" stroke="black"/>
                        <path d="M 376,144 L 512,144" fill="none" stroke="black"/>
                        <path d="M 376,176 L 512,176" fill="none" stroke="black"/>
                        <path d="M 16,240 L 360,240" fill="none" stroke="black"/>
                        <path d="M 16,288 L 360,288" fill="none" stroke="black"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="384,176 372,170.4 372,181.6"
                                  transform="rotate(180,376,176)"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="368,288 356,282.4 356,293.6"
                                  transform="rotate(0,360,288)"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="368,80 356,74.4 356,85.6"
                                  transform="rotate(0,360,80)"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="24,240 12,234.4 12,245.6"
                                  transform="rotate(180,16,240)"/>
                        <g class="text">
                           <text x="28" y="36">Client</text>
                           <text x="348" y="36">Server</text>
                           <text x="36" y="68">POST</text>
                           <text x="408" y="116">Reserve</text>
                           <text x="480" y="116">resources</text>
                           <text x="392" y="132">for</text>
                           <text x="436" y="132">upload</text>
                           <text x="120" y="212">104</text>
                           <text x="164" y="212">Upload</text>
                           <text x="236" y="212">Resumption</text>
                           <text x="320" y="212">Supported</text>
                           <text x="124" y="228">with</text>
                           <text x="172" y="228">upload</text>
                           <text x="236" y="228">resource</text>
                           <text x="288" y="228">URL</text>
                           <text x="36" y="276">Flow</text>
                           <text x="104" y="276">Interrupted</text>
                        </g>
                     </svg>
                  </artwork>
                  <artwork type="ascii-art">
Client                                  Server
|                                            |
| POST                                       |
|-------------------------------------------&gt;|
|                                            |
|                                            | Reserve resources
|                                            | for upload
|                                            |-----------------.
|                                            |                 |
|                                            |&lt;----------------'
|                                            |
|            104 Upload Resumption Supported |
|            with upload resource URL        |
|&lt;-------------------------------------------|
|                                            |
| Flow Interrupted                           |
|-------------------------------------------&gt;|
|                                            |
</artwork>
               </artset>
            </figure>
            <t>2) If the connection to the server is interrupted, the client might want to resume the upload. However, before this is possible the client needs to know the amount of data that the server received before the interruption. It does so by retrieving the offset (<xref target="offset-retrieving"/>) from the upload resource.</t>
            <figure anchor="fig-offset-retrieving" title="Offset Retrieval">
               <artset>
                  <artwork type="svg">
                     <svg xmlns="http://www.w3.org/2000/svg"
                           class="diagram"
                           font-family="monospace"
                           font-size="13px"
                           height="160"
                           stroke-linecap="round"
                           text-anchor="middle"
                           version="1.1"
                           viewBox="0 0 416 160"
                           width="416">
                        <path d="M 8,48 L 8,144" fill="none" stroke="black"/>
                        <path d="M 408,48 L 408,144" fill="none" stroke="black"/>
                        <path d="M 16,80 L 400,80" fill="none" stroke="black"/>
                        <path d="M 16,128 L 400,128" fill="none" stroke="black"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="408,80 396,74.4 396,85.6"
                                  transform="rotate(0,400,80)"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="24,128 12,122.4 12,133.6"
                                  transform="rotate(180,16,128)"/>
                        <g class="text">
                           <text x="28" y="36">Client</text>
                           <text x="388" y="36">Server</text>
                           <text x="36" y="68">HEAD</text>
                           <text x="68" y="68">to</text>
                           <text x="108" y="68">upload</text>
                           <text x="172" y="68">resource</text>
                           <text x="224" y="68">URL</text>
                           <text x="144" y="116">204</text>
                           <text x="172" y="116">No</text>
                           <text x="216" y="116">Content</text>
                           <text x="268" y="116">with</text>
                           <text x="344" y="116">Upload-Offset</text>
                        </g>
                     </svg>
                  </artwork>
                  <artwork type="ascii-art">
Client                                       Server
|                                                 |
| HEAD to upload resource URL                     |
|------------------------------------------------&gt;|
|                                                 |
|               204 No Content with Upload-Offset |
|&lt;------------------------------------------------|
|                                                 |
</artwork>
               </artset>
            </figure>
            <t>3) The client can resume the upload by sending the remaining file content to the upload resource (<xref target="upload-appending"/>), appending to the already stored data in the upload. The <spanx style="verb">Upload-Offset</spanx> value is included to ensure that the client and server agree on the offset that the upload resumes from.</t>
            <figure anchor="fig-upload-appending" title="Upload Append">
               <artset>
                  <artwork type="svg">
                     <svg xmlns="http://www.w3.org/2000/svg"
                           class="diagram"
                           font-family="monospace"
                           font-size="13px"
                           height="160"
                           stroke-linecap="round"
                           text-anchor="middle"
                           version="1.1"
                           viewBox="0 0 416 160"
                           width="416">
                        <path d="M 8,48 L 8,144" fill="none" stroke="black"/>
                        <path d="M 408,48 L 408,144" fill="none" stroke="black"/>
                        <path d="M 16,80 L 400,80" fill="none" stroke="black"/>
                        <path d="M 16,128 L 400,128" fill="none" stroke="black"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="408,80 396,74.4 396,85.6"
                                  transform="rotate(0,400,80)"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="24,128 12,122.4 12,133.6"
                                  transform="rotate(180,16,128)"/>
                        <g class="text">
                           <text x="28" y="36">Client</text>
                           <text x="388" y="36">Server</text>
                           <text x="40" y="68">PATCH</text>
                           <text x="76" y="68">to</text>
                           <text x="116" y="68">upload</text>
                           <text x="180" y="68">resource</text>
                           <text x="232" y="68">URL</text>
                           <text x="268" y="68">with</text>
                           <text x="344" y="68">Upload-Offset</text>
                           <text x="200" y="116">201</text>
                           <text x="248" y="116">Created</text>
                           <text x="292" y="116">on</text>
                           <text x="348" y="116">completion</text>
                        </g>
                     </svg>
                  </artwork>
                  <artwork type="ascii-art">
Client                                       Server
|                                                 |
| PATCH to upload resource URL with Upload-Offset |
|------------------------------------------------&gt;|
|                                                 |
|                      201 Created on completion  |
|&lt;------------------------------------------------|
|                                                 |
</artwork>
               </artset>
            </figure>
            <t>4) If the client is not interested in completing the upload, it can instruct the upload resource to delete the upload and free all related resources (<xref target="upload-cancellation"/>).</t>
            <figure anchor="fig-upload-cancellation" title="Upload Cancellation">
               <artset>
                  <artwork type="svg">
                     <svg xmlns="http://www.w3.org/2000/svg"
                           class="diagram"
                           font-family="monospace"
                           font-size="13px"
                           height="160"
                           stroke-linecap="round"
                           text-anchor="middle"
                           version="1.1"
                           viewBox="0 0 416 160"
                           width="416">
                        <path d="M 8,48 L 8,144" fill="none" stroke="black"/>
                        <path d="M 408,48 L 408,144" fill="none" stroke="black"/>
                        <path d="M 16,80 L 400,80" fill="none" stroke="black"/>
                        <path d="M 16,128 L 400,128" fill="none" stroke="black"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="408,80 396,74.4 396,85.6"
                                  transform="rotate(0,400,80)"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="24,128 12,122.4 12,133.6"
                                  transform="rotate(180,16,128)"/>
                        <g class="text">
                           <text x="28" y="36">Client</text>
                           <text x="388" y="36">Server</text>
                           <text x="44" y="68">DELETE</text>
                           <text x="84" y="68">to</text>
                           <text x="124" y="68">upload</text>
                           <text x="188" y="68">resource</text>
                           <text x="240" y="68">URL</text>
                           <text x="184" y="116">204</text>
                           <text x="212" y="116">No</text>
                           <text x="256" y="116">Content</text>
                           <text x="300" y="116">on</text>
                           <text x="356" y="116">completion</text>
                        </g>
                     </svg>
                  </artwork>
                  <artwork type="ascii-art">
Client                                       Server
|                                                 |
| DELETE to upload resource URL                   |
|------------------------------------------------&gt;|
|                                                 |
|                    204 No Content on completion |
|&lt;------------------------------------------------|
|                                                 |
</artwork>
               </artset>
            </figure>
         </section>
         <section anchor="example-2-upload-as-a-series-of-parts">
            <name>Example 2: Upload as a series of parts</name>
            <t>In some cases, clients might prefer to upload a file as a series of parts sent serially across multiple HTTP messages. One use case is to overcome server limits on HTTP message content size. Another use case is where the client does not know the final size, such as when file data originates from a streaming source.</t>
            <t>This example shows how the client, with prior knowledge about the server's resumable upload support, can upload parts of a file incrementally.</t>
            <t>1) If the client is aware that the server supports resumable upload, it can start an upload with the <spanx style="verb">Upload-Complete</spanx> field value set to false and the first part of the file.</t>
            <figure anchor="fig-upload-creation-incomplete"
                     title="Incomplete Upload Creation">
               <artset>
                  <artwork type="svg">
                     <svg xmlns="http://www.w3.org/2000/svg"
                           class="diagram"
                           font-family="monospace"
                           font-size="13px"
                           height="176"
                           stroke-linecap="round"
                           text-anchor="middle"
                           version="1.1"
                           viewBox="0 0 416 176"
                           width="416">
                        <path d="M 8,48 L 8,160" fill="none" stroke="black"/>
                        <path d="M 408,48 L 408,160" fill="none" stroke="black"/>
                        <path d="M 16,80 L 400,80" fill="none" stroke="black"/>
                        <path d="M 16,144 L 400,144" fill="none" stroke="black"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="408,80 396,74.4 396,85.6"
                                  transform="rotate(0,400,80)"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="24,144 12,138.4 12,149.6"
                                  transform="rotate(180,16,144)"/>
                        <g class="text">
                           <text x="28" y="36">Client</text>
                           <text x="388" y="36">Server</text>
                           <text x="36" y="68">POST</text>
                           <text x="76" y="68">with</text>
                           <text x="164" y="68">Upload-Complete:</text>
                           <text x="244" y="68">?0</text>
                           <text x="120" y="116">201</text>
                           <text x="168" y="116">Created</text>
                           <text x="220" y="116">with</text>
                           <text x="308" y="116">Upload-Complete:</text>
                           <text x="388" y="116">?0</text>
                           <text x="120" y="132">and</text>
                           <text x="172" y="132">Location</text>
                           <text x="220" y="132">on</text>
                           <text x="276" y="132">completion</text>
                        </g>
                     </svg>
                  </artwork>
                  <artwork type="ascii-art">
Client                                       Server
|                                                 |
| POST with Upload-Complete: ?0                   |
|------------------------------------------------&gt;|
|                                                 |
|            201 Created with Upload-Complete: ?0 |
|            and Location on completion           |
|&lt;------------------------------------------------|
|                                                 |
</artwork>
               </artset>
            </figure>
            <t>2) Subsequently, parts are appended (<xref target="upload-appending"/>). The last part of the upload has a <spanx style="verb">Upload-Complete</spanx> field value set to true to indicate the complete transfer.</t>
            <figure anchor="fig-upload-appending-last-chunk"
                     title="Upload Append Last Chunk">
               <artset>
                  <artwork type="svg">
                     <svg xmlns="http://www.w3.org/2000/svg"
                           class="diagram"
                           font-family="monospace"
                           font-size="13px"
                           height="176"
                           stroke-linecap="round"
                           text-anchor="middle"
                           version="1.1"
                           viewBox="0 0 416 176"
                           width="416">
                        <path d="M 8,48 L 8,160" fill="none" stroke="black"/>
                        <path d="M 408,48 L 408,160" fill="none" stroke="black"/>
                        <path d="M 16,96 L 400,96" fill="none" stroke="black"/>
                        <path d="M 16,144 L 400,144" fill="none" stroke="black"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="408,96 396,90.4 396,101.6"
                                  transform="rotate(0,400,96)"/>
                        <polygon class="arrowhead"
                                  fill="black"
                                  points="24,144 12,138.4 12,149.6"
                                  transform="rotate(180,16,144)"/>
                        <g class="text">
                           <text x="28" y="36">Client</text>
                           <text x="388" y="36">Server</text>
                           <text x="40" y="68">PATCH</text>
                           <text x="76" y="68">to</text>
                           <text x="116" y="68">upload</text>
                           <text x="180" y="68">resource</text>
                           <text x="232" y="68">URL</text>
                           <text x="268" y="68">with</text>
                           <text x="72" y="84">Upload-Offset</text>
                           <text x="144" y="84">and</text>
                           <text x="228" y="84">Upload-Complete:</text>
                           <text x="308" y="84">?1</text>
                           <text x="208" y="132">201</text>
                           <text x="256" y="132">Created</text>
                           <text x="300" y="132">on</text>
                           <text x="356" y="132">completion</text>
                        </g>
                     </svg>
                  </artwork>
                  <artwork type="ascii-art">
Client                                       Server
|                                                 |
| PATCH to upload resource URL with               |
| Upload-Offset and Upload-Complete: ?1           |
|------------------------------------------------&gt;|
|                                                 |
|                       201 Created on completion |
|&lt;------------------------------------------------|
|                                                 |
</artwork>
               </artset>
            </figure>
         </section>
      </section>
      <section anchor="upload-creation">
         <name>Upload Creation</name>
         <t>When a resource supports resumable uploads, the first step is creating the upload resource. To be compatible with the widest range of resources, this is accomplished by including the <spanx style="verb">Upload-Complete</spanx> header field in the request that initiates the upload.</t>
         <t>As a consequence, resumable uploads support all HTTP request methods that can carry content, such as <spanx style="verb">POST</spanx>, <spanx style="verb">PUT</spanx>, and <spanx style="verb">PATCH</spanx>. Similarly, the response to the upload request can have any status code. Both the method(s) and status code(s) supported are determined by the resource.</t>
         <t>
            <spanx style="verb">Upload-Complete</spanx>
            <bcp14>MUST</bcp14> be set to false if the end of the request content is not the end of the upload. Otherwise, it <bcp14>MUST</bcp14> be set to true. This header field can be used for request identification by a server. The request <bcp14>MUST NOT</bcp14> include the <spanx style="verb">Upload-Offset</spanx> header field.</t>
         <t>If the request is valid, the server <bcp14>SHOULD</bcp14> create an upload resource. Then, the server <bcp14>MUST</bcp14> include the <spanx style="verb">Location</spanx> header field in the response and set its value to the URL of the upload resource. The client <bcp14>MAY</bcp14> use this URL for offset retrieval (<xref target="offset-retrieving"/>), upload append (<xref target="upload-appending"/>), and upload cancellation (<xref target="upload-cancellation"/>).</t>
         <t>Once the upload resource is available and while the request content is being uploaded, the target resource <bcp14>MAY</bcp14> send one or more informational responses with a <spanx style="verb">104 (Upload Resumption Supported)</spanx> status code to the client. In the first informational response, the <spanx style="verb">Location</spanx> header field <bcp14>MUST</bcp14> be set to the URL pointing to the upload resource. In subsequent informational responses, the <spanx style="verb">Location</spanx> header field <bcp14>MUST NOT</bcp14> be set. An informational response <bcp14>MAY</bcp14> contain the <spanx style="verb">Upload-Offset</spanx> header field with the current upload offset as the value to inform the client about the upload progress.</t>
         <t>The server <bcp14>MUST</bcp14> send the <spanx style="verb">Upload-Offset</spanx> header field in the response if it considers the upload active, either when the response is a success (e.g. <spanx style="verb">201 (Created)</spanx>), or when the response is a failure (e.g. <spanx style="verb">409 (Conflict)</spanx>). The <spanx style="verb">Upload-Offset</spanx> field value <bcp14>MUST</bcp14> be equal to the end offset of the entire upload, or the begin offset of the next chunk if the upload is still incomplete. The client <bcp14>SHOULD</bcp14> consider the upload failed if the response has a status code that indicates a success but the offset indicated in the <spanx style="verb">Upload-Offset</spanx> field value does not equal the total of begin offset plus the number of bytes uploaded in the request.</t>
         <t>If the request completes successfully and the entire upload is complete, the server <bcp14>MUST</bcp14> acknowledge it by responding with a 2xx (Successful) status code. Servers are <bcp14>RECOMMENDED</bcp14> to use <spanx style="verb">201 (Created)</spanx> unless otherwise specified. The response <bcp14>MUST NOT</bcp14> include the <spanx style="verb">Upload-Complete</spanx> header field with the value of false.</t>
         <t>If the request completes successfully but the entire upload is not yet complete, as indicated by an <spanx style="verb">Upload-Complete</spanx> field value of false in the request, the server <bcp14>MUST</bcp14> acknowledge it by responding with the <spanx style="verb">201 (Created)</spanx> status code and an <spanx style="verb">Upload-Complete</spanx> header value set to false.</t>
         <t>If the request includes an <spanx style="verb">Upload-Complete</spanx> field value set to true and a valid <spanx style="verb">Content-Length</spanx> header field, the client attempts to upload a fixed-length resource in one request. In this case, the upload's final size is the <spanx style="verb">Content-Length</spanx> field value and the server <bcp14>MUST</bcp14> record it to ensure its consistency.</t>
         <t>The server <bcp14>MAY</bcp14> enforce a maximum size of an upload resource. This limit <bcp14>MAY</bcp14> be equal to the upload's final size, if <spanx style="verb">Upload-Complete: ?1</spanx> and <spanx style="verb">Content-Length</spanx> are present in the upload creation request, or an arbitrary value. The limit's value or its existence <bcp14>MUST NOT</bcp14> change throughout the lifetime of the upload resource. The server <bcp14>MAY</bcp14> indicate such a limit to the client by including the <spanx style="verb">Upload-Limit</spanx> header field in the informational or final response to upload creation. If the client receives an <spanx style="verb">Upload-Limit</spanx> header field indicating that the maximum size is less than the amount of bytes it intends to upload to a resource, it <bcp14>SHOULD</bcp14> stop the current upload transfer immediately and cancel the upload (<xref target="upload-cancellation"/>).</t>
         <t>The request content <bcp14>MAY</bcp14> be empty. If the <spanx style="verb">Upload-Complete</spanx> header field is then set to true, the client intends to upload an empty resource representation. An <spanx style="verb">Upload-Complete</spanx> header field is set to false is also valid. This can be used to create an upload resource URL before transferring data, which can save client or server resources. Since informational responses are optional, this technique provides another mechanism to learn the URL, at the cost of an additional round-trip before data upload can commence.</t>
         <t>If the server does not receive the entire request content, for example because of canceled requests or dropped connections, it <bcp14>SHOULD</bcp14> append as much of the request content starting at its beginning and without discontinuities as possible. If the server did not append the entire request content, the upload <bcp14>MUST NOT</bcp14> be considered complete.</t>
         <figure>
            <sourcecode type="http-message">
POST /upload HTTP/1.1
Host: example.com
Upload-Draft-Interop-Version: 6
Upload-Complete: ?1
Content-Length: 100

[content (100 bytes)]
</sourcecode>
         </figure>
         <figure>
            <sourcecode type="http-message">
HTTP/1.1 104 Upload Resumption Supported
Upload-Draft-Interop-Version: 6
Location: https://example.com/upload/b530ce8ff

HTTP/1.1 104 Upload Resumption Supported
Upload-Draft-Interop-Version: 6
Upload-Offset: 50

HTTP/1.1 201 Created
Location: https://example.com/upload/b530ce8ff
Upload-Offset: 100
</sourcecode>
         </figure>
         <t>The next example shows an upload creation, where only the first 25 bytes are transferred. The server acknowledges the received data and that the upload is not complete yet:</t>
         <figure>
            <sourcecode type="http-message">
POST /upload HTTP/1.1
Host: example.com
Upload-Draft-Interop-Version: 6
Upload-Complete: ?0
Content-Length: 25

[partial content (25 bytes)]
</sourcecode>
         </figure>
         <figure>
            <sourcecode type="http-message">
HTTP/1.1 201 Created
Location: https://example.com/upload/b530ce8ff
Upload-Complete: ?0
Upload-Offset: 25
Upload-Limit: max-size=1000000000
</sourcecode>
         </figure>
         <t>If the client received an informational response with the upload URL in the Location field value, it <bcp14>MAY</bcp14> automatically attempt upload resumption when the connection is terminated unexpectedly, or if a 5xx status is received. The client <bcp14>SHOULD NOT</bcp14> automatically retry if it receives a 4xx status code.</t>
         <t>File metadata can affect how servers might act on the uploaded file. Clients can send representation metadata (see <xref section="8.3" sectionFormat="of" target="HTTP"/>) in the request that starts an upload. Servers <bcp14>MAY</bcp14> interpret this metadata or <bcp14>MAY</bcp14> ignore it. The <spanx style="verb">Content-Type</spanx> header field (<xref section="8.3" sectionFormat="of" target="HTTP"/>) can be used to indicate the media type of the file. The content coding of the representation is specified using the <spanx style="verb">Content-Encoding</spanx> header field and is retained throughout the entire upload. When resuming an interrupted upload, the same content coding is used for appending to the upload, producing a representation of the upload resource with one consistent content coding. The <spanx style="verb">Content-Disposition</spanx> header field (<xref target="RFC6266"/>) can be used to transmit a filename; if included, the parameters <bcp14>SHOULD</bcp14> be either <spanx style="verb">filename</spanx>, <spanx style="verb">filename*</spanx> or <spanx style="verb">boundary</spanx>.</t>
         <section anchor="feature-detection">
            <name>Feature Detection</name>
            <t>If the client has no knowledge of whether the resource supports resumable uploads, a resumable request can be used with some additional constraints. In particular, the <spanx style="verb">Upload-Complete</spanx> field value (<xref target="upload-complete"/>) <bcp14>MUST NOT</bcp14> be false if the server support is unclear. This allows the upload to function as if it is a regular upload.</t>
            <t>Servers <bcp14>SHOULD</bcp14> use the <spanx style="verb">104 (Upload Resumption Supported)</spanx> informational response to indicate their support for a resumable upload request.</t>
            <t>Clients <bcp14>MUST NOT</bcp14> attempt to resume an upload unless they receive <spanx style="verb">104 (Upload Resumption Supported)</spanx> informational response, or have other out-of-band methods to determine server support for resumable uploads.</t>
         </section>
         <section anchor="draft-version-identification">
            <name>Draft Version Identification</name>
            <ul empty="true">
               <li>
                  <t>
                     <strong>RFC Editor's Note:</strong> Please remove this section and <spanx style="verb">Upload-Draft-Interop-Version</spanx> from all examples prior to publication of a final version of this document.</t>
               </li>
            </ul>
            <t>The current interop version is 6.</t>
            <t>Client implementations of draft versions of the protocol <bcp14>MUST</bcp14> send a header field <spanx style="verb">Upload-Draft-Interop-Version</spanx> with the interop version as its value to its requests. The <spanx style="verb">Upload-Draft-Interop-Version</spanx> field value is an Integer.</t>
            <t>Server implementations of draft versions of the protocol <bcp14>MUST NOT</bcp14> send a <spanx style="verb">104 (Upload Resumption Supported)</spanx> informational response when the interop version indicated by the <spanx style="verb">Upload-Draft-Interop-Version</spanx> header field in the request is missing or mismatching.</t>
            <t>Server implementations of draft versions of the protocol <bcp14>MUST</bcp14> also send a header field <spanx style="verb">Upload-Draft-Interop-Version</spanx> with the interop version as its value to the <spanx style="verb">104 (Upload Resumption Supported)</spanx> informational response.</t>
            <t>Client implementations of draft versions of the protocol <bcp14>MUST</bcp14> ignore a <spanx style="verb">104 (Upload Resumption Supported)</spanx> informational response with missing or mismatching interop version indicated by the <spanx style="verb">Upload-Draft-Interop-Version</spanx> header field.</t>
            <t>The reason both the client and the server are sending and checking the draft version is to ensure that implementations of the final RFC will not accidentally interop with draft implementations, as they will not check the existence of the <spanx style="verb">Upload-Draft-Interop-Version</spanx> header field.</t>
         </section>
      </section>
      <section anchor="offset-retrieving">
         <name>Offset Retrieval</name>
         <t>If an upload is interrupted, the client <bcp14>MAY</bcp14> attempt to fetch the offset of the incomplete upload by sending a <spanx style="verb">HEAD</spanx> request to the upload resource.</t>
         <t>The request <bcp14>MUST NOT</bcp14> include an <spanx style="verb">Upload-Offset</spanx> or <spanx style="verb">Upload-Complete</spanx> header field. The server <bcp14>MUST</bcp14> reject requests with either of these fields by responding with a <spanx style="verb">400 (Bad Request)</spanx> status code.</t>
         <t>If the server considers the upload resource to be active, it <bcp14>MUST</bcp14> respond with a <spanx style="verb">204 (No Content)</spanx> or <spanx style="verb">200 (OK)</spanx> status code. The response <bcp14>MUST</bcp14> include the <spanx style="verb">Upload-Offset</spanx> header field, with the value set to the current resumption offset for the target resource. The response <bcp14>MUST</bcp14> include the <spanx style="verb">Upload-Complete</spanx> header field; the value is set to true only if the upload is complete. The response <bcp14>MAY</bcp14> include the <spanx style="verb">Upload-Limit</spanx> header field if corresponding limits on the upload resource exist.</t>
         <t>An upload is considered complete only if the server completely and successfully received a corresponding creation request (<xref target="upload-creation"/>) or append request (<xref target="upload-appending"/>) with the <spanx style="verb">Upload-Complete</spanx> header value set to true.</t>
         <t>The client <bcp14>MUST NOT</bcp14> perform offset retrieval while creation (<xref target="upload-creation"/>) or append (<xref target="upload-appending"/>) is in progress.</t>
         <t>The offset <bcp14>MUST</bcp14> be accepted by a subsequent append (<xref target="upload-appending"/>). Due to network delay and reordering, the server might still be receiving data from an ongoing transfer for the same upload resource, which in the client's perspective has failed. The server <bcp14>MAY</bcp14> terminate any transfers for the same upload resource before sending the response by abruptly terminating the HTTP connection or stream. Alternatively, the server <bcp14>MAY</bcp14> keep the ongoing transfer alive but ignore further bytes received past the offset.</t>
         <t>The client <bcp14>MUST NOT</bcp14> start more than one append (<xref target="upload-appending"/>) based on the resumption offset from a single offset retrieving request.</t>
         <t>In order to prevent HTTP caching, the response <bcp14>SHOULD</bcp14> include a <spanx style="verb">Cache-Control</spanx> header field with the value <spanx style="verb">no-store</spanx>.</t>
         <t>If the server does not consider the upload resource to be active, it <bcp14>MUST</bcp14> respond with a <spanx style="verb">404 (Not Found)</spanx> status code.</t>
         <t>The resumption offset can be less than or equal to the number of bytes the client has already sent. The client <bcp14>MAY</bcp14> reject an offset which is greater than the number of bytes it has already sent during this upload. The client is expected to handle backtracking of a reasonable length. If the offset is invalid for this upload, or if the client cannot backtrack to the offset and reproduce the same content it has already sent, the upload <bcp14>MUST</bcp14> be considered a failure. The client <bcp14>MAY</bcp14> cancel the upload (<xref target="upload-cancellation"/>) after rejecting the offset.</t>
         <t>The following example shows an offset retrieval request. The server indicates the new offset and that the upload is not complete yet:</t>
         <figure>
            <sourcecode type="http-message">
HEAD /upload/b530ce8ff HTTP/1.1
Host: example.com
Upload-Draft-Interop-Version: 6
</sourcecode>
         </figure>
         <figure>
            <sourcecode type="http-message">
HTTP/1.1 204 No Content
Upload-Offset: 100
Upload-Complete: ?0
Cache-Control: no-store
</sourcecode>
         </figure>
         <t>The client <bcp14>SHOULD NOT</bcp14> automatically retry if a 4xx (Client Error) status code is received.</t>
      </section>
      <section anchor="upload-appending">
         <name>Upload Append</name>
         <t>Upload appending is used for resuming an existing upload.</t>
         <t>The request <bcp14>MUST</bcp14> use the <spanx style="verb">PATCH</spanx> method with the <spanx style="verb">application/partial-upload</spanx> media type and <bcp14>MUST</bcp14> be sent to the upload resource. The <spanx style="verb">Upload-Offset</spanx> field value (<xref target="upload-offset"/>) <bcp14>MUST</bcp14> be set to the resumption offset.</t>
         <t>If the end of the request content is not the end of the upload, the <spanx style="verb">Upload-Complete</spanx> field value (<xref target="upload-complete"/>) <bcp14>MUST</bcp14> be set to false.</t>
         <t>The server <bcp14>SHOULD</bcp14> respect representation metadata received during creation (<xref target="upload-creation"/>). An upload append request continues uploading the same representation as used in the upload creation (<xref target="upload-creation"/>) and thus uses the same content coding, if one was applied. For example, if the initial upload creation included the <spanx style="verb">Content-Encoding: gzip</spanx> header field, the upload append request resumes the transfer of the gzipped data without indicating again that the gzip coding is applied.</t>
         <t>If the server does not consider the upload associated with the upload resource active, it <bcp14>MUST</bcp14> respond with a <spanx style="verb">404 (Not Found)</spanx> status code.</t>
         <t>The client <bcp14>MUST NOT</bcp14> perform multiple upload transfers for the same upload resource in parallel. This helps avoid race conditions, and data loss or corruption. The server is <bcp14>RECOMMENDED</bcp14> to take measures to avoid parallel upload transfers: The server <bcp14>MAY</bcp14> terminate any creation (<xref target="upload-creation"/>) or append for the same upload URL. Since the client is not allowed to perform multiple transfers in parallel, the server can assume that the previous attempt has already failed. Therefore, the server <bcp14>MAY</bcp14> abruptly terminate the previous HTTP connection or stream.</t>
         <t>If the offset indicated by the <spanx style="verb">Upload-Offset</spanx> field value does not match the offset provided by the immediate previous offset retrieval (<xref target="offset-retrieving"/>), or the end offset of the immediate previous incomplete successful transfer, the server <bcp14>MUST</bcp14> respond with a <spanx style="verb">409 (Conflict)</spanx> status code. The server <bcp14>MAY</bcp14> use the problem type <xref target="PROBLEM"/> of "https://iana.org/assignments/http-problem-types#mismatching-upload-offset" in the response; see <xref target="mismatching-offset"/>.</t>
         <t>The server applies the patch document of the <spanx style="verb">application/partial-upload</spanx> media type by appending the request content to the targeted upload resource. If the server does not receive the entire patch document, for example because of canceled requests or dropped connections, it <bcp14>SHOULD</bcp14> append as much of the patch document starting at its beginning and without discontinuities as possible. Appending a continuous section starting at the patch document's beginning constitutes a successful PATCH as defined in <xref section="2" sectionFormat="of" target="RFC5789"/>. If the server did not receive and apply the entire patch document, the upload <bcp14>MUST NOT</bcp14> be considered complete.</t>
         <t>While the request content is being uploaded, the target resource <bcp14>MAY</bcp14> send one or more informational responses with a <spanx style="verb">104 (Upload Resumption Supported)</spanx> status code to the client. These informational responses <bcp14>MUST NOT</bcp14> contain the <spanx style="verb">Location</spanx> header field. They <bcp14>MAY</bcp14> include the <spanx style="verb">Upload-Offset</spanx> header field with the current upload offset as the value to inform the client about the upload progress.</t>
         <t>The server <bcp14>MUST</bcp14> send the <spanx style="verb">Upload-Offset</spanx> header field in the response if it considers the upload active, either when the response is a success (e.g. <spanx style="verb">201 (Created)</spanx>), or when the response is a failure (e.g. <spanx style="verb">409 (Conflict)</spanx>). The value <bcp14>MUST</bcp14> be equal to the end offset of the entire upload, or the begin offset of the next chunk if the upload is still incomplete. The client <bcp14>SHOULD</bcp14> consider the upload failed if the status code indicates a success but the offset indicated by the <spanx style="verb">Upload-Offset</spanx> field value does not equal the total of begin offset plus the number of bytes uploaded in the request.</t>
         <t>If the upload is already complete, the server <bcp14>MUST NOT</bcp14> modify the upload resource and <bcp14>MUST</bcp14> respond with a <spanx style="verb">400 (Bad Request)</spanx> status code. The server <bcp14>MAY</bcp14> use the problem type <xref target="PROBLEM"/> of "https://iana.org/assignments/http-problem-types#completed-upload" in the response; see <xref target="completed-upload"/>.</t>
         <t>If the request completes successfully and the entire upload is complete, the server <bcp14>MUST</bcp14> acknowledge it by responding with a 2xx (Successful) status code. Servers are <bcp14>RECOMMENDED</bcp14> to use a <spanx style="verb">201 (Created)</spanx> response if not otherwise specified. The response <bcp14>MUST NOT</bcp14> include the <spanx style="verb">Upload-Complete</spanx> header field with the value set to false.</t>
         <t>If the request completes successfully but the entire upload is not yet complete indicated by the <spanx style="verb">Upload-Complete</spanx> field value set to false, the server <bcp14>MUST</bcp14> acknowledge it by responding with a <spanx style="verb">201 (Created)</spanx> status code and the <spanx style="verb">Upload-Complete</spanx> field value set to true.</t>
         <t>If the request includes the <spanx style="verb">Upload-Complete</spanx> field value set to true and a valid <spanx style="verb">Content-Length</spanx> header field, the client attempts to upload the remaining resource in one request. In this case, the upload's final size is the sum of the upload's offset and the <spanx style="verb">Content-Length</spanx> header field. If the server does not have a record of the upload's final size from creation or the previous append, the server <bcp14>MUST</bcp14> record the upload's final size to ensure its consistency. If the server does have a previous record, that value <bcp14>MUST</bcp14> match the upload's final size. If they do not match, the server <bcp14>MUST</bcp14> reject the request with a <spanx style="verb">400 (Bad Request)</spanx> status code.</t>
         <t>The request content <bcp14>MAY</bcp14> be empty. If the <spanx style="verb">Upload-Complete</spanx> field is then set to true, the client wants to complete the upload without appending additional data.</t>
         <t>The following example shows an upload append. The client transfers the next 100 bytes at an offset of 100 and does not indicate that the upload is then completed. The server acknowledges the new offset:</t>
         <figure>
            <sourcecode type="http-message">
PATCH /upload/b530ce8ff HTTP/1.1
Host: example.com
Upload-Offset: 100
Upload-Draft-Interop-Version: 6
Content-Length: 100
Content-Type: application/partial-upload

[content (100 bytes)]
</sourcecode>
         </figure>
         <figure>
            <sourcecode type="http-message">
HTTP/1.1 201 Created
Upload-Offset: 200
</sourcecode>
         </figure>
         <t>The client <bcp14>MAY</bcp14> automatically attempt upload resumption when the connection is terminated unexpectedly, or if a 5xx (Server Error) status code is received. The client <bcp14>SHOULD NOT</bcp14> automatically retry if a 4xx (Client Error) status code is received.</t>
      </section>
      <section anchor="upload-cancellation">
         <name>Upload Cancellation</name>
         <t>If the client wants to terminate the transfer without the ability to resume, it can send a <spanx style="verb">DELETE</spanx> request to the upload resource. Doing so is an indication that the client is no longer interested in continuing the upload, and that the server can release any resources associated with it.</t>
         <t>The client <bcp14>MUST NOT</bcp14> initiate cancellation without the knowledge of server support.</t>
         <t>The request <bcp14>MUST</bcp14> use the <spanx style="verb">DELETE</spanx> method. The request <bcp14>MUST NOT</bcp14> include an <spanx style="verb">Upload-Offset</spanx> or <spanx style="verb">Upload-Complete</spanx> header field. The server <bcp14>MUST</bcp14> reject the request with a <spanx style="verb">Upload-Offset</spanx> or <spanx style="verb">Upload-Complete</spanx> header field with a <spanx style="verb">400 (Bad Request)</spanx> status code.</t>
         <t>If the server successfully deactivates the upload resource, it <bcp14>MUST</bcp14> respond with a <spanx style="verb">204 (No Content)</spanx> status code.</t>
         <t>The server <bcp14>MAY</bcp14> terminate any in-flight requests to the upload resource before sending the response by abruptly terminating their HTTP connection(s) or stream(s).</t>
         <t>If the server does not consider the upload resource to be active, it <bcp14>MUST</bcp14> respond with a <spanx style="verb">404 (Not Found)</spanx> status code.</t>
         <t>If the server does not support cancellation, it <bcp14>MUST</bcp14> respond with a <spanx style="verb">405 (Method Not Allowed)</spanx> status code.</t>
         <t>The following example shows an upload cancellation:</t>
         <figure>
            <sourcecode type="http-message">
DELETE /upload/b530ce8ff HTTP/1.1
Host: example.com
Upload-Draft-Interop-Version: 6
</sourcecode>
         </figure>
         <figure>
            <sourcecode type="http-message">
HTTP/1.1 204 No Content
</sourcecode>
         </figure>
      </section>
      <section anchor="header-fields">
         <name>Header Fields</name>
         <section anchor="upload-offset">
            <name>Upload-Offset</name>
            <t>The <spanx style="verb">Upload-Offset</spanx> request and response header field indicates the resumption offset of corresponding upload, counted in bytes. The <spanx style="verb">Upload-Offset</spanx> field value is an Integer.</t>
         </section>
         <section anchor="upload-limit">
            <name>Upload-Limit</name>
            <t>The <spanx style="verb">Upload-Limit</spanx> response header field indicates limits applying the upload resource. The <spanx style="verb">Upload-Limit</spanx> field value is a Dictionary. The following limits are defined:</t>
            <t>
               <list style="symbols">
                  <t>The <spanx style="verb">max-size</spanx> key specifies a maximum size that an upload resource is allowed to reach, counted in bytes. The value is an Integer.</t>
                  <t>The <spanx style="verb">min-size</spanx> key specifies a minimum size for a resumable upload, counted in bytes. The server will not create an upload resource if the client indicates that the uploaded data is smaller than the minimum size. The value is an Integer.</t>
                  <t>The <spanx style="verb">max-append-size</spanx> key specifies a maximum size counted in bytes for the request content in a single upload append request (<xref target="upload-appending"/>). The server <bcp14>MAY</bcp14> reject requests exceeding this limit and a client <bcp14>SHOULD NOT</bcp14> send larger upload append requests. The value is an Integer.</t>
                  <t>The <spanx style="verb">min-append-size</spanx> key specifies a minimum size counted in bytes for the request content in a single upload append request (<xref target="upload-appending"/>). The server <bcp14>MAY</bcp14> reject requests below this limit and a client <bcp14>SHOULD NOT</bcp14> send smaller upload append requests. The value is an Integer.</t>
                  <t>The <spanx style="verb">expires</spanx> key specifies the remaining lifetime of the upload resource in seconds counted from the generation of the response by the server. After the resource's lifetime is reached, the server <bcp14>MAY</bcp14> make the upload resource inaccessible and a client <bcp14>SHOULD NOT</bcp14> attempt to access the upload resource. The lifetime <bcp14>MAY</bcp14> be extended but <bcp14>SHOULD NOT</bcp14> be reduced once the upload resource is created. The value is an Integer.</t>
               </list>
            </t>
            <t>When parsing this header field, unrecognized keys <bcp14>MUST</bcp14> be ignored and <bcp14>MUST NOT</bcp14> fail the parsing to facilitate the addition of new limits in the future.</t>
         </section>
         <section anchor="upload-complete">
            <name>Upload-Complete</name>
            <t>The <spanx style="verb">Upload-Complete</spanx> request and response header field indicates whether the corresponding upload is considered complete. The <spanx style="verb">Upload-Complete</spanx> field value is a Boolean.</t>
            <t>The <spanx style="verb">Upload-Complete</spanx> header field <bcp14>MUST</bcp14> only be used if support by the resource is known to the client (<xref target="feature-detection"/>).</t>
         </section>
      </section>
      <section anchor="media-type-applicationpartial-upload">
         <name>Media Type <spanx style="verb">application/partial-upload</spanx>
         </name>
         <t>The <spanx style="verb">application/partial-upload</spanx> media type describes a contiguous block of data that should be uploaded to a resource. There is no minimum block size and the block might be empty. The start and end of the block might align with the start and end of the file that should be uploaded, but they are not required to be aligned.</t>
      </section>
      <section anchor="problem-types">
         <name>Problem Types</name>
         <section anchor="mismatching-offset">
            <name>Mismatching Offset</name>
            <t>This section defines the "https://iana.org/assignments/http-problem-types#mismatching-upload-offset" problem type <xref target="PROBLEM"/>. A server <bcp14>MAY</bcp14> use this problem type when responding to an upload append request (<xref target="upload-appending"/>) to indicate that the <spanx style="verb">Upload-Offset</spanx> header field in the request does not match the upload resource's offset.</t>
            <t>Two problem type extension members are defined: the <spanx style="verb">expected-offset</spanx> and <spanx style="verb">provided-offset</spanx> members. A response using this problem type <bcp14>SHOULD</bcp14> populate both members, with the value of <spanx style="verb">expected-offset</spanx> taken from the upload resource and the value of <spanx style="verb">provided-offset</spanx> taken from the upload append request.</t>
            <t>The following example shows an example response, where the resource's offset was 100, but the client attempted to append at offset 200:</t>
            <figure>
               <sourcecode type="http-message">
HTTP/1.1 409 Conflict
Content-Type: application/problem+json

{
  "type":"https://iana.org/assignments/http-problem-types#mismatching-upload-offset",
  "title": "offset from request does not match offset of resource",
  "expected-offset": 100,
  "provided-offset": 200
}
</sourcecode>
            </figure>
         </section>
         <section anchor="completed-upload">
            <name>Completed Upload</name>
            <t>This section defines the "https://iana.org/assignments/http-problem-types#completed-upload" problem type <xref target="PROBLEM"/>. A server <bcp14>MAY</bcp14> use this problem type when responding to an upload append request (<xref target="upload-appending"/>) to indicate that the upload has already been completed and cannot be modified.</t>
            <t>The following example shows an example response:</t>
            <figure>
               <sourcecode type="http-message">
HTTP/1.1 400 Bad Request
Content-Type: application/problem+json

{
  "type":"https://iana.org/assignments/http-problem-types#completed-upload",
  "title": "upload is already completed"
}

</sourcecode>
            </figure>
         </section>
      </section>
      <section anchor="offset-values">
         <name>Offset values</name>
         <t>The offset of an upload resource is the number of bytes that have been appended to the upload resource. Appended data cannot be removed from an upload and, therefore, the upload offset <bcp14>MUST NOT</bcp14> decrease. A server <bcp14>MUST NOT</bcp14> generate responses containing an <spanx style="verb">Upload-Offset</spanx> header field with a value that is smaller than was included in previous responses for the same upload resource. This includes informational and final responses for upload creation (<xref target="upload-creation"/>), upload appending (<xref target="upload-appending"/>), and offset retrieval (<xref target="offset-retrieving"/>).</t>
         <t>If a server loses data that has been appended to an upload, it <bcp14>MUST</bcp14> consider the upload resource invalid and reject further use of the upload resource. The <spanx style="verb">Upload-Offset</spanx> header field in responses serves as an acknowledgement of the append operation and as a guarantee that no retransmission of the data will be necessary. Client can use this guarantee to free resources associated to already uploaded data while the upload is still ongoing.</t>
      </section>
      <section anchor="redirection">
         <name>Redirection</name>
         <t>The <spanx style="verb">301 (Moved Permanently)</spanx> and <spanx style="verb">302 (Found)</spanx> status codes <bcp14>MUST NOT</bcp14> be used in offset retrieval (<xref target="offset-retrieving"/>) and upload cancellation (<xref target="upload-cancellation"/>) responses. For other responses, the upload resource <bcp14>MAY</bcp14> return a <spanx style="verb">308 (Permanent Redirect)</spanx> status code and clients <bcp14>SHOULD</bcp14> use new permanent URI for subsequent requests. If the client receives a <spanx style="verb">307 (Temporary Redirect)</spanx> response to an offset retrieval (<xref target="offset-retrieving"/>) request, it <bcp14>MAY</bcp14> apply the redirection directly in an immediate subsequent upload append (<xref target="upload-appending"/>).</t>
      </section>
      <section anchor="transfer-and-content-codings">
         <name>Transfer and Content Codings</name>
         <t>A message might have a content coding, indicated by the <spanx style="verb">Content-Encoding</spanx> header field, and/or a transfer coding, indicated by the <spanx style="verb">Transfer-Encoding</spanx> header field (<xref section="6.1" sectionFormat="of" target="RFC9112"/>), applied, which modify the representation of uploaded data in a message. For correct interoperability, the client and server must share the same logic when counting bytes for the upload offset. From the client's perspective, the offset is counted after content coding but before transfer coding is applied. From the server's perspective, the offset is counted after the content's transfer coding is reversed but before the content coding is reversed.</t>
      </section>
      <section anchor="integrity-digests">
         <name>Integrity Digests</name>
         <t>The integrity of an entire upload or individual upload requests can be verifying using digests from <xref target="DIGEST-FIELDS"/>.</t>
         <t>If the client knows the integrity digest of the entire data before creating an upload resource, it <bcp14>MAY</bcp14> include the <spanx style="verb">Repr-Digest</spanx> header field when creating an upload (<xref target="upload-creation"/>). Once the upload is completed, the server can compute the integrity digest of the received upload representation and compare it to the provided digest. If the digests don't match the server <bcp14>SHOULD</bcp14> consider the transfer failed and not process the uploaded data further. This way, the integrity of the entire uploaded data can be protected.</t>
         <t>If the client knows the integrity digest of the content from an upload creation (<xref target="upload-creation"/>) or upload appending (<xref target="upload-appending"/>) request, it <bcp14>MAY</bcp14> include the <spanx style="verb">Content-Digest</spanx> header field in the request. Once the content has been received, the server can compute the integrity digest of the received content and compare it to the provided digest. If the digests don't match the server <bcp14>SHOULD</bcp14> consider the transfer failed and not append the content to the upload resource. This way, the integrity of an individual request can be protected.</t>
      </section>
      <section anchor="subsequent-resources">
         <name>Subsequent Resources</name>
         <t>The server might process the uploaded data and make its results available in another resource during or after the upload. This subsequent resource is different from the upload resource created by the upload creation request (<xref target="upload-creation"/>). The subsequent resource does not handle the upload process itself, but instead facilitates further interaction with the uploaded data. The server <bcp14>MAY</bcp14> indicate the location of this subsequent resource by including the <spanx style="verb">Content-Location</spanx> header field in informational or final responses generated while creating (<xref target="upload-creation"/>), appending to (<xref target="upload-appending"/>), or retrieving the offset (<xref target="offset-retrieving"/>) of an upload. For example, a subsequent resource could allow the client to fetch information extracted from the uploaded data.</t>
      </section>
      <section anchor="security-considerations">
         <name>Security Considerations</name>
         <t>The upload resource URL is the identifier used for modifying the upload. Without further protection of this URL, an attacker may obtain information about an upload, append data to it, or cancel it. To prevent this, the server <bcp14>SHOULD</bcp14> ensure that only authorized clients can access the upload resource. In addition, the upload resource URL <bcp14>SHOULD</bcp14> be generated in such a way that makes it hard to be guessed by unauthorized clients.</t>
         <t>Some servers or intermediaries provide scanning of content uploaded by clients. Any scanning mechanism that relies on receiving a complete file in a single request message can be defeated by resumable uploads because content can be split across multiple messages. Servers or intermediaries wishing to perform content scanning <bcp14>SHOULD</bcp14> consider how resumable uploads can circumvent scanning and take appropriate measures. Possible strategies include waiting for the upload to complete before scanning a full file, or disabling resumable uploads.</t>
         <t>Resumable uploads are vulnerable to Slowloris-style attacks <xref target="SLOWLORIS"/>. A malicious client may create upload resources and keep them alive by regularly sending <spanx style="verb">PATCH</spanx> requests with no or small content to the upload resources. This could be abused to exhaust server resources by creating and holding open uploads indefinitely with minimal work.</t>
         <t>Servers <bcp14>SHOULD</bcp14> provide mitigations for Slowloris attacks, such as increasing the maximum number of clients the server will allow, limiting the number of uploads a single client is allowed to make, imposing restrictions on the minimum transfer speed an upload is allowed to have, and restricting the length of time an upload resource can exist.</t>
      </section>
      <section anchor="iana-considerations">
         <name>IANA Considerations</name>
         <t>IANA is asked to register the following entries in the "Hypertext Transfer Protocol (HTTP) Field Name Registry":</t>
         <texttable>
            <ttcol align="left">Field Name</ttcol>
            <ttcol align="left">Status</ttcol>
            <ttcol align="left">Reference</ttcol>
            <c>Upload-Complete</c>
            <c>permanent</c>
            <c>
               <xref target="upload-complete"/> of this document</c>
            <c>Upload-Offset</c>
            <c>permanent</c>
            <c>
               <xref target="upload-offset"/> of this document</c>
            <c>Upload-Limit</c>
            <c>permanent</c>
            <c>
               <xref target="upload-limit"/> of this document</c>
         </texttable>
         <t>IANA is asked to register the following entry in the "HTTP Status Codes" registry:</t>
         <dl>
            <dt>Value:</dt>
            <dd>
               <t>104 (suggested value)</t>
            </dd>
            <dt>Description:</dt>
            <dd>
               <t>Upload Resumption Supported</t>
            </dd>
            <dt>Specification:</dt>
            <dd>
               <t>This document</t>
            </dd>
         </dl>
         <t>IANA is asked to register the following entry in the "Media Types" registry:</t>
         <dl>
            <dt>Type name:</dt>
            <dd>
               <t>application</t>
            </dd>
            <dt>Subtype name:</dt>
            <dd>
               <t>partial-upload</t>
            </dd>
            <dt>Required parameters:</dt>
            <dd>
               <t>N/A</t>
            </dd>
            <dt>Optional parameters:</dt>
            <dd>
               <t>N/A</t>
            </dd>
            <dt>Encoding considerations:</dt>
            <dd>
               <t>binary</t>
            </dd>
            <dt>Security considerations:</dt>
            <dd>
               <t>see <xref target="security-considerations"/> of this document</t>
            </dd>
            <dt>Interoperability considerations:</dt>
            <dd>
               <t>N/A</t>
            </dd>
            <dt>Published specification:</dt>
            <dd>
               <t>This document</t>
            </dd>
            <dt>Applications that use this media type:</dt>
            <dd>
               <t>Applications that transfer files over unreliable networks or want pause- and resumable uploads.</t>
            </dd>
            <dt>Fragment identifier considerations:</dt>
            <dd>
               <t>N/A</t>
            </dd>
         </dl>
         <t>Additional information:</t>
         <t>
            <list style="symbols">
               <t>Deprecated alias names for this type: N/A</t>
               <t>Magic number(s): N/A</t>
               <t>File extension(s): N/A</t>
               <t>Macintosh file type code(s): N/A</t>
               <t>Windows Clipboard Name: N/A</t>
            </list>
         </t>
         <dl>
            <dt>Person and email address to contact for further information:</dt>
            <dd>
               <t>See the Authors' Addresses section of this document.</t>
            </dd>
            <dt>Intended usage:</dt>
            <dd>
               <t>COMMON</t>
            </dd>
            <dt>Restrictions on usage:</dt>
            <dd>
               <t>N/A</t>
            </dd>
            <dt>Author:</dt>
            <dd>
               <t>See the Authors' Addresses section of this document.</t>
            </dd>
            <dt>Change controller:</dt>
            <dd>
               <t>IETF</t>
            </dd>
         </dl>
         <t>IANA is asked to register the following entry in the "HTTP Problem Types" registry:</t>
         <dl>
            <dt>Type URI:</dt>
            <dd>
               <t>https://iana.org/assignments/http-problem-types#mismatching-upload-offset Title:</t>
            </dd>
            <dt/>
            <dd>
               <t>Mismatching Upload Offset Recommended HTTP status code:</t>
            </dd>
            <dt/>
            <dd>
               <t>409 Reference:</t>
            </dd>
            <dt/>
            <dd>
               <t>This document</t>
            </dd>
         </dl>
         <t>IANA is asked to register the following entry in the "HTTP Problem Types" registry:</t>
         <dl>
            <dt>Type URI:</dt>
            <dd>
               <t>https://iana.org/assignments/http-problem-types#completed-upload Title:</t>
            </dd>
            <dt/>
            <dd>
               <t>Upload Is Completed Recommended HTTP status code:</t>
            </dd>
            <dt/>
            <dd>
               <t>400 Reference:</t>
            </dd>
            <dt/>
            <dd>
               <t>This document</t>
            </dd>
         </dl>
      </section>
   </middle>
   <back>
      <displayreference target="RFC9112" to="HTTP/1.1"/>
      <references anchor="sec-normative-references" title="Normative References">
         <reference anchor="HTTP">
            <front>
               <title>HTTP Semantics</title>
               <author fullname="R. Fielding"
                        initials="R."
                        role="editor"
                        surname="Fielding"/>
               <author fullname="M. Nottingham"
                        initials="M."
                        role="editor"
                        surname="Nottingham"/>
               <author fullname="J. Reschke"
                        initials="J."
                        role="editor"
                        surname="Reschke"/>
               <date month="June" year="2022"/>
            </front>
            <seriesInfo name="STD" value="97"/>
            <seriesInfo name="RFC" value="9110"/>
            <seriesInfo name="DOI" value="10.17487/RFC9110"/>
         </reference>
         <reference anchor="RFC9112">
            <front>
               <title>HTTP/1.1</title>
               <author fullname="R. Fielding"
                        initials="R."
                        role="editor"
                        surname="Fielding"/>
               <author fullname="M. Nottingham"
                        initials="M."
                        role="editor"
                        surname="Nottingham"/>
               <author fullname="J. Reschke"
                        initials="J."
                        role="editor"
                        surname="Reschke"/>
               <date month="June" year="2022"/>
            </front>
            <seriesInfo name="STD" value="99"/>
            <seriesInfo name="RFC" value="9112"/>
            <seriesInfo name="DOI" value="10.17487/RFC9112"/>
         </reference>
         <reference anchor="RFC5789">
            <front>
               <title>PATCH Method for HTTP</title>
               <author fullname="L. Dusseault" initials="L." surname="Dusseault"/>
               <author fullname="J. Snell" initials="J." surname="Snell"/>
               <date month="March" year="2010"/>
            </front>
            <seriesInfo name="RFC" value="5789"/>
            <seriesInfo name="DOI" value="10.17487/RFC5789"/>
         </reference>
         <reference anchor="PROBLEM">
            <front>
               <title>Problem Details for HTTP APIs</title>
               <author fullname="M. Nottingham" initials="M." surname="Nottingham"/>
               <author fullname="E. Wilde" initials="E." surname="Wilde"/>
               <author fullname="S. Dalal" initials="S." surname="Dalal"/>
               <date month="July" year="2023"/>
            </front>
            <seriesInfo name="RFC" value="9457"/>
            <seriesInfo name="DOI" value="10.17487/RFC9457"/>
         </reference>
         <reference anchor="RFC2119">
            <front>
               <title>Key words for use in RFCs to Indicate Requirement Levels</title>
               <author fullname="S. Bradner" initials="S." surname="Bradner"/>
               <date month="March" year="1997"/>
            </front>
            <seriesInfo name="BCP" value="14"/>
            <seriesInfo name="RFC" value="2119"/>
            <seriesInfo name="DOI" value="10.17487/RFC2119"/>
         </reference>
         <reference anchor="RFC8174">
            <front>
               <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
               <author fullname="B. Leiba" initials="B." surname="Leiba"/>
               <date month="May" year="2017"/>
            </front>
            <seriesInfo name="BCP" value="14"/>
            <seriesInfo name="RFC" value="8174"/>
            <seriesInfo name="DOI" value="10.17487/RFC8174"/>
         </reference>
         <reference anchor="STRUCTURED-FIELDS">
            <front>
               <title>Structured Field Values for HTTP</title>
               <author fullname="M. Nottingham" initials="M." surname="Nottingham"/>
               <author fullname="P-H. Kamp" surname="P-H. Kamp"/>
               <date month="February" year="2021"/>
            </front>
            <seriesInfo name="RFC" value="8941"/>
            <seriesInfo name="DOI" value="10.17487/RFC8941"/>
         </reference>
         <reference anchor="RFC6266">
            <front>
               <title>Use of the Content-Disposition Header Field in the Hypertext Transfer Protocol (HTTP)</title>
               <author fullname="J. Reschke" initials="J." surname="Reschke"/>
               <date month="June" year="2011"/>
            </front>
            <seriesInfo name="RFC" value="6266"/>
            <seriesInfo name="DOI" value="10.17487/RFC6266"/>
         </reference>
         <reference anchor="DIGEST-FIELDS">
            <front>
               <title>Digest Fields</title>
               <author fullname="R. Polli" initials="R." surname="Polli"/>
               <author fullname="L. Pardue" initials="L." surname="Pardue"/>
               <date month="February" year="2024"/>
            </front>
            <seriesInfo name="RFC" value="9530"/>
            <seriesInfo name="DOI" value="10.17487/RFC9530"/>
         </reference>
      </references>
      <references anchor="sec-informative-references" title="Informative References">
         <reference anchor="SLOWLORIS"
                     target="https://web.archive.org/web/20150315054838/http://ha.ckers.org/slowloris/">
            <front>
               <title>Welcome to Slowloris - the low bandwidth, yet greedy and poisonous HTTP client!</title>
               <author initials="R." surname="&#34;RSnake&#34; Hansen"/>
               <date month="June" year="2009"/>
            </front>
         </reference>
      </references>
      <?line 646?>
      <section anchor="informational-response">
         <name>Informational Response</name>
         <t>The server is allowed to respond to upload creation (<xref target="upload-creation"/>) requests with a <spanx style="verb">104 (Upload Resumption Supported)</spanx> intermediate response as soon as the server has validated the request. This way, the client knows that the server supports resumable uploads before the complete response is received. The benefit is the clients can defer starting the actual data transfer until the server indicates full support (i.e. resumable are supported, the provided upload URL is active etc).</t>
         <t>On the contrary, support for intermediate responses (the <spanx style="verb">1XX</spanx> range) in existing software is limited or not at all present. Such software includes proxies, firewalls, browsers, and HTTP libraries for clients and server. Therefore, the <spanx style="verb">104 (Upload Resumption Supported)</spanx> status code is optional and not mandatory for the successful completion of an upload. Otherwise, it might be impossible in some cases to implement resumable upload servers using existing software packages. Furthermore, as parts of the current internet infrastructure currently have limited support for intermediate responses, a successful delivery of a <spanx style="verb">104 (Upload Resumption Supported)</spanx> from the server to the client should be assumed.</t>
         <t>We hope that support for intermediate responses increases in the near future, to allow a wider usage of <spanx style="verb">104 (Upload Resumption Supported)</spanx>.</t>
      </section>
      <section anchor="changes-feature-detection">
         <name>Feature Detection</name>
         <t>This specification includes a section about feature detection (it was called service discovery in earlier discussions, but this name is probably ill-suited). The idea is to allow resumable uploads to be transparently implemented by HTTP clients. This means that application developers just keep using the same API of their HTTP library as they have done in the past with traditional, non-resumable uploads. Once the HTTP library gets updated (e.g. because mobile OS or browsers start implementing resumable uploads), the HTTP library can transparently decide to use resumable uploads without explicit configuration by the application developer. Of course, in order to use resumable uploads, the HTTP library needs to know whether the server supports resumable uploads. If no support is detected, the HTTP library should use the traditional, non-resumable upload technique. We call this process feature detection.</t>
         <t>Ideally, the technique used for feature detection meets following <strong>criteria</strong> (there might not be one approach which fits all requirements, so we have to prioritize them):</t>
         <t>
            <list style="numbers">
               <t>Avoid additional roundtrips by the client, if possible (i.e. an additional HTTP request by the client should be avoided).</t>
               <t>Be backwards compatible to HTTP/1.1 and existing network infrastructure: This means to avoid using new features in HTTP/2, or features which might require changes to existing network infrastructure (e.g. nginx or HTTP libraries)</t>
               <t>Conserve the user's privacy (i.e. the feature detection should not leak information to other third-parties about which URLs have been connected to)</t>
            </list>
         </t>
         <t>Following <strong>approaches</strong> have already been considered in the past. All except the last approaches have not been deemed acceptable and are therefore not included in the specification. This follow list is a reference for the advantages and disadvantages of some approaches:</t>
         <t>
            <strong>Include a support statement in the SETTINGS frame.</strong> The SETTINGS frame is a HTTP/2 feature and is sent by the server to the client to exchange information about the current connection. The idea was to include an additional statement in this frame, so the client can detect support for resumable uploads without an additional roundtrip. The problem is that this is not compatible with HTTP/1.1. Furthermore, the SETTINGS frame is intended for information about the current connection (not bound to a request/response) and might not be persisted when transmitted through a proxy.</t>
         <t>
            <strong>Include a support statement in the DNS record.</strong> The client can detect support when resolving a domain name. Of course, DNS is not semantically the correct layer. Also, DNS might not be involved if the record is cached or retrieved from a hosts files.</t>
         <t>
            <strong>Send a HTTP request to ask for support.</strong> This is the easiest approach where the client sends an OPTIONS request and uses the response to determine if the server indicates support for resumable uploads. An alternative is that the client sends the request to a well-known URL to obtain this response, e.g. <spanx style="verb">/.well-known/resumable-uploads</spanx>. Of course, while being fully backwards-compatible, it requires an additional roundtrip.</t>
         <t>
            <strong>Include a support statement in previous responses.</strong> In many cases, the file upload is not the first time that the client connects to the server. Often additional requests are sent beforehand for authentication, data retrieval etc. The responses for those requests can also include a header field which indicates support for resumable uploads. There are two options: - Use the standardized <spanx style="verb">Alt-Svc</spanx> response header field. However, it has been indicated to us that this header field might be reworked in the future and could also be semantically different from our intended usage. - Use a new response header field <spanx style="verb">Resumable-Uploads: https://example.org/files/*</spanx> to indicate under which endpoints support for resumable uploads is available.</t>
         <t>
            <strong>Send a 104 intermediate response to indicate support.</strong> The clients normally starts a traditional upload and includes a header field indicate that it supports resumable uploads (e.g. <spanx style="verb">Upload-Offset: 0</spanx>). If the server also supports resumable uploads, it will immediately respond with a 104 intermediate response to indicate its support, before further processing the request. This way the client is informed during the upload whether it can resume from possible connection errors or not. While an additional roundtrip is avoided, the problem with that solution is that many HTTP server libraries do not support sending custom 1XX responses and that some proxies may not be able to handle new 1XX status codes correctly.</t>
         <t>
            <strong>Send a 103 Early Hint response to indicate support.</strong> This approach is the similar to the above one, with one exception: Instead of a new <spanx style="verb">104 (Upload Resumption Supported)</spanx> status code, the existing <spanx style="verb">103 (Early Hint)</spanx> status code is used in the intermediate response. The 103 code would then be accompanied by a header field indicating support for resumable uploads (e.g. <spanx style="verb">Resumable-Uploads: 1</spanx>). It is unclear whether the Early Hints code is appropriate for that, as it is currently only used to indicate resources for prefetching them.</t>
      </section>
      <section anchor="upload-metadata">
         <name>Upload Metadata</name>
         <t>When an upload is created (<xref target="upload-creation"/>), the <spanx style="verb">Content-Type</spanx> and <spanx style="verb">Content-Disposition</spanx> header fields are allowed to be included. They are intended to be a standardized way of communicating the file name and file type, if available. However, this is not without controversy. Some argue that since these header fields are already defined in other specifications, it is not necessary to include them here again. Furthermore, the <spanx style="verb">Content-Disposition</spanx> header field's format is not clearly enough defined. For example, it is left open which disposition value should be used in the header field. There needs to be more discussion whether this approach is suited or not.</t>
         <t>However, from experience with the tus project, users are often asking for a way to communicate the file name and file type. Therefore, we believe it is help to explicitly include an approach for doing so.</t>
      </section>
      <section anchor="faq">
         <name>FAQ</name>
         <t>
            <list style="symbols">
               <t>
                  <strong>Are multipart requests supported?</strong> Yes, requests whose content is encoded using the <spanx style="verb">multipart/form-data</spanx> are implicitly supported. The entire encoded content can be considered as a single file, which is then uploaded using the resumable protocol. The server, of course, must store the delimiter ("boundary") separating each part and must be able to parse the multipart format once the upload is completed.</t>
            </list>
         </t>
      </section>
      <section anchor="acknowledgments" numbered="false">
         <name>Acknowledgments</name>
         <t>This document is based on an Internet-Draft specification written by Jiten Mehta, Stefan Matsson, and the authors of this document.</t>
         <t>The <eref target="https://tus.io/">tus v1 protocol</eref> is a specification for a resumable file upload protocol over HTTP. It inspired the early design of this protocol. Members of the tus community helped significantly in the process of bringing this work to the IETF.</t>
         <t>The authors would like to thank Mark Nottingham for substantive contributions to the text.</t>
      </section>
      <section anchor="changes" numbered="false" removeInRFC="true">
         <name>Changes</name>
         <section anchor="since-draft-ietf-httpbis-resumable-upload-03" numbered="false">
            <name>Since draft-ietf-httpbis-resumable-upload-03</name>
            <t>
               <list style="symbols">
                  <t>Add note about <spanx style="verb">Content-Location</spanx> for referring to subsequent resources.</t>
                  <t>Require <spanx style="verb">application/partial-upload</spanx> for appending to uploads.</t>
                  <t>Explain handling of content and transfer codings.</t>
                  <t>Add problem types for mismatching offsets and completed uploads.</t>
                  <t>Clarify that completed uploads must not be appended to.</t>
                  <t>Describe interaction with Digest Fields from RFC9530.</t>
                  <t>Require that upload offset does not decrease over time.</t>
                  <t>Add Upload-Limit header field.</t>
                  <t>Increase the draft interop version.</t>
               </list>
            </t>
         </section>
         <section anchor="since-draft-ietf-httpbis-resumable-upload-02" numbered="false">
            <name>Since draft-ietf-httpbis-resumable-upload-02</name>
            <t>
               <list style="symbols">
                  <t>Add upload progress notifications via informational responses.</t>
                  <t>Add security consideration regarding request filtering.</t>
                  <t>Explain the use of empty requests for creation uploads and appending.</t>
                  <t>Extend security consideration to include resource exhaustion attacks.</t>
                  <t>Allow 200 status codes for offset retrieval.</t>
                  <t>Increase the draft interop version.</t>
               </list>
            </t>
         </section>
         <section anchor="since-draft-ietf-httpbis-resumable-upload-01" numbered="false">
            <name>Since draft-ietf-httpbis-resumable-upload-01</name>
            <t>
               <list style="symbols">
                  <t>Replace Upload-Incomplete header with Upload-Complete.</t>
                  <t>Replace terminology about procedures with HTTP resources.</t>
                  <t>Increase the draft interop version.</t>
               </list>
            </t>
         </section>
         <section anchor="since-draft-ietf-httpbis-resumable-upload-00" numbered="false">
            <name>Since draft-ietf-httpbis-resumable-upload-00</name>
            <t>
               <list style="symbols">
                  <t>Remove Upload-Token and instead use Server-generated upload URL for upload identification.</t>
                  <t>Require the Upload-Incomplete header field in Upload Creation Procedure.</t>
                  <t>Increase the draft interop version.</t>
               </list>
            </t>
         </section>
         <section anchor="since-draft-tus-httpbis-resumable-uploads-protocol-02"
                   numbered="false">
            <name>Since draft-tus-httpbis-resumable-uploads-protocol-02</name>
            <t>None</t>
         </section>
         <section anchor="since-draft-tus-httpbis-resumable-uploads-protocol-01"
                   numbered="false">
            <name>Since draft-tus-httpbis-resumable-uploads-protocol-01</name>
            <t>
               <list style="symbols">
                  <t>Clarifying backtracking and preventing skipping ahead during the Offset Receiving Procedure.</t>
                  <t>Clients auto-retry 404 is no longer allowed.</t>
               </list>
            </t>
         </section>
         <section anchor="since-draft-tus-httpbis-resumable-uploads-protocol-00"
                   numbered="false">
            <name>Since draft-tus-httpbis-resumable-uploads-protocol-00</name>
            <t>
               <list style="symbols">
                  <t>Split the Upload Transfer Procedure into the Upload Creation Procedure and the Upload Appending Procedure.</t>
               </list>
            </t>
         </section>
      </section>
   </back>
</rfc>
