You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: draft-ietf-httpbis-resumable-upload.md
+27-27Lines changed: 27 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -412,44 +412,44 @@ The server might not receive the entire request content when the upload is inter
412
412
413
413
### Examples {#upload-creation-example}
414
414
415
-
A) The following example shows an upload creation, where the entire 100000000 bytes are transferred in the initial request. The server sends multiple interim responses and one final response from processing the uploaded representation.
415
+
A) The following example shows an upload creation, where the entire 123456789 bytes are transferred in the initial request. The server sends multiple interim responses and one final response from processing the uploaded representation.
416
416
417
417
~~~ http-message
418
418
POST /project/123/files HTTP/1.1
419
419
Host: example.com
420
420
Upload-Complete: ?1
421
-
Content-Length: 100000000
422
-
Upload-Length: 100000000
421
+
Content-Length: 123456789
422
+
Upload-Length: 123456789
423
423
424
-
[content (100000000 bytes)]
424
+
[content (123456789 bytes)]
425
425
~~~
426
426
427
427
~~~ http-message
428
428
HTTP/1.1 104 Upload Resumption Supported
429
429
Location: https://example.com/upload/b530ce8ff
430
-
Upload-Limit: max-size=1000000000
430
+
Upload-Limit: max-size=1234567890
431
431
432
432
HTTP/1.1 104 Upload Resumption Supported
433
-
Upload-Offset: 50000000
433
+
Upload-Offset: 23456789
434
434
435
435
HTTP/1.1 200 OK
436
436
Location: https://example.com/upload/b530ce8ff
437
-
Upload-Limit: max-size=1000000000
437
+
Upload-Limit: max-size=1234567890
438
438
Content-Type: application/json
439
439
440
440
{"attachmentId": "b530ce8ff"}
441
441
~~~
442
442
443
-
B) The following example shows an upload creation, where only the first 25000000 bytes of a 100000000 bytes upload are transferred. The server acknowledges the received representation data and that the upload is not complete yet. The client can continue appending data.
443
+
B) The following example shows an upload creation, where only the first 23456789 bytes of a 123456789 bytes upload are transferred. The server acknowledges the received representation data and that the upload is not complete yet. The client can continue appending data.
C) The following example shows an upload creation, where the server responds with a 5xx status code. Thanks to the interim response containing the upload resource URI, the client can resume the upload.
@@ -467,10 +467,10 @@ C) The following example shows an upload creation, where the server responds wit
467
467
POST /upload HTTP/1.1
468
468
Host: example.com
469
469
Upload-Complete: ?1
470
-
Content-Length: 100000000
471
-
Upload-Length: 100000000
470
+
Content-Length: 123456789
471
+
Upload-Length: 123456789
472
472
473
-
[content (100000000 bytes)]
473
+
[content (123456789 bytes)]
474
474
~~~
475
475
476
476
~~~ http-message
@@ -486,10 +486,10 @@ D) The following example shows an upload creation being rejected by the server b
486
486
POST /upload-not-allowed HTTP/1.1
487
487
Host: example.com
488
488
Upload-Complete: ?1
489
-
Content-Length: 100000000
490
-
Upload-Length: 100000000
489
+
Content-Length: 123456789
490
+
Upload-Length: 123456789
491
491
492
-
[content (100000000 bytes)]
492
+
[content (123456789 bytes)]
493
493
~~~
494
494
495
495
~~~ http-message
@@ -607,38 +607,38 @@ While the request content is being received, the server SHOULD send interim resp
607
607
608
608
### Examples {#upload-appending-example}
609
609
610
-
A) The following example shows an upload append request. The client transfers the next 25000000 bytes at an offset of 25000000 and does not indicate that the upload is then completed. The server generates one interim response and finally acknowledges the new offset:
610
+
A) The following example shows an upload append request. The client transfers the next 23456789 bytes at an offset of 23456789 and does not indicate that the upload is then completed. The server generates one interim response and finally acknowledges the new offset:
611
611
612
612
~~~ http-message
613
613
PATCH /upload/37a504d87 HTTP/1.1
614
614
Host: example.com
615
615
Upload-Complete: ?0
616
-
Upload-Offset: 25000000
617
-
Content-Length: 25000000
616
+
Upload-Offset: 23456789
617
+
Content-Length: 23456789
618
618
Content-Type: application/partial-upload
619
619
620
-
[content (25000000 bytes)]
620
+
[content (23456789 bytes)]
621
621
~~~
622
622
623
623
~~~ http-message
624
624
HTTP/1.1 104 Upload Resumption Supported
625
-
Upload-Offset: 12500000
625
+
Upload-Offset: 35185184
626
626
627
627
HTTP/1.1 204 No Content
628
628
Upload-Complete: ?0
629
629
~~~
630
630
631
-
B) The next example shows an upload append, where the client transfers the remaining 25000000 bytes and completes the upload. The server processes the uploaded representation and generates the responding response, in this example containing extracted meta data:
631
+
B) The next example shows an upload append, where the client transfers the remaining 4567890 bytes and completes the upload with a length of 1234567890 bytes. The server processes the uploaded representation and generates the responding response, in this example containing extracted meta data:
0 commit comments