@@ -485,9 +485,16 @@ Client explicitly sets the following headers:
485
485
Any other headers are set by a target browser and are not used by client.
486
486
Library does not provide any facilities to track a file uniqueness across requests, it's left on developer's consideration.
487
487
488
- Client recognizes the following response codes:
489
- * 200, 201 - chunk is successfully saved
490
- * 416, 500 - recoverable error, library tries to resend chunk 'chunkUploadRetry' times then fails
488
+ Response codes:
489
+ * 200 - last chunk is uploaded
490
+ * 201 - chunk is successfully saved
491
+ * 416 - range is not acceptable error, recoverable
492
+ * 500 - server error, recoverable
493
+
494
+ For recoverable errors server tries to resend chunk 'chunkUploadRetry' times then fails.
495
+
496
+ Response headers:
497
+ * X-Last-Known-Byte: int, library tries to resend chunk from the given offset. Applicable to response codes 200 and 416
491
498
492
499
All the other codes - fatal error, user's involvement is recommend.
493
500
@@ -671,8 +678,12 @@ All the other codes - fatal error, user's involvement is recommend.
671
678
672
679
673
680
## Changelog
681
+ ### 1.2.6
682
+ * [#91](https://github.com/mailru/FileAPI/issues/91): replace ` new Image ` to ` FileAPI .newImage `
674
683
* + FileAPI.withCredentials: true
675
684
* [#90](https://github.com/mailru/FileAPI/issues/90): Fixed ` progress` event
685
+ * [#105](https://github.com/mailru/FileAPI/issues/105): Fixed ` image/ jpg` -> ` image/ jpeg`
686
+ * [#108](https://github.com/mailru/FileAPI/issues/108): Check width/height before resize by type(min/max)
676
687
677
688
678
689
### 1.2.5
0 commit comments