-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 7.10
-
Fix Version/s: QualifiedToSchedule
-
Component/s: File Upload , Nuxeo Drive
-
Tags:
-
Story Points:3
- Cut a real binary file into chunks in BatchUploadFixture#textChunkedUpload and BatchUploadFixture#testBatchExecuteWithChunkedUpload. This will illustrate the way of making chunks.
- Handle a null X-File-Size header in chunked mode.
- BatchManager#addStream could return the effective uploaded size, otherwise the uploadedSize return value based on the Content-Length header is not reliable, currently only set in multipart. In fact it should return the BatchFileEntry to avoid fetching it just after having created it in the case of chunks:
if (UPLOAD_TYPE_CHUNKED.equals(uploadType)) { BatchFileEntry fileEntry = Framework.getService(BatchManager.class).getFileEntry(batchId, fileIdx); ... }
For an upload by chunks maybe we want the total uploaded size (sum of the uploaded chunks)?
And maybe use a use subclass of FileEntry like ChunkedFileEntry?
- In BatchFileEntry#addChunk: when uploading the last chunk, check file size consistency? If not OK send a dedicated status code?
- In BatchFileEntry#getBlob, check real file size against expected fileSize and handle error?
- depends on
-
NXP-18329 Fix Error For input string: "NaN" when importing audio files
- Resolved
-
NXP-19152 Uploading a file larger than 2Go through Batch Upload API returns a 404
- Resolved
-
NXP-16951 Allow to resume upload
- Resolved
-
NXP-18310 Allow to POST the same chunk twice when uploading a file by chunks
- Open
- is required by
-
NXPY-40 Use chunks to allow resumable upload
- Resolved