Request:
GET /
Host: tus.example.org
Response:
HTTP/1.1 200 OK
...
<form action="http://tus.example.org/" enctype="multipart/form-data" method="post">
<input maxLength="1024" name="file" type="file" multiple/>
<button>Submit</button>
</form>
Request:
POST /
Host: tus.example.org
Content-Type: multipart/form-data; boundary=AaB03x
--AaB03x
Content-Disposition: form-data; name="file[name]"
file.txt
--AaB03x
Content-Disposition: form-data; name="file[type]"
text/plain
--AaB03x
Content-Disposition: form-data; name="file[size]"
2048
--AaB03x--
Response:
HTTP/1.1 201 OK
Location: http://tus.example.org/966218c0bfcec3a138f9e8d1c4eac592
...
Request:
GET /966218c0bfcec3a138f9e8d1c4eac592
Host: tus.example.org
Response:
HTTP/1.1 200 OK
...
<form action="http://tus.example.org/966218c0bfcec3a138f9e8d1c4eac592" enctype="multipart/form-data" method="post">
<input name="_method" type="hidden" value="patch"
<input maxLength="1024" name="file" type="file" format="file.txt" accept="text/plain" data-offset="1023" />
<button>Submit</button>
</form>
<form action="http://tus.example.org/966218c0bfcec3a138f9e8d1c4eac592" method="post">
<input name="_method" type="hidden" value="delete"
<button>Submit</button>
</form>
Request:
POST /966218c0bfcec3a138f9e8d1c4eac592
Host: tus.example.org
Content-Type: multipart/form-data; boundary=AaB03x
--AaB03x
Content-Disposition: form-data; name="file"
Content-Type: multipart/mixed; boundary=BbC04y
--BbC04y
Content-Disposition: file; name="file.txt"
Content-Type: text/plain
...
--BbC04y--
--AaB03x--
(repeat)
Response:
HTTP/1.1 200 OK
...
<form action="http://tus.example.org/966218c0bfcec3a138f9e8d1c4eac592" method="post">
<input name="_method" type="hidden" value="delete"
<button>Submit</button>
</form>