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
{{ message }}
Repository navigation
Implement async progress reporting for upload / assembly #214
When finishing a large upload the assembly of a 40 GB file might take a long time. Currently, tus has no extension for this and the concatenation extension explicitly states:
The response to a HEAD request for a final upload SHOULD NOT contain the Upload-Offset header unless the concatenation has been successfully finished. After successful concatenation, the Upload-Offset and Upload-Length MUST be set and their values MUST be equal. The value of the Upload-Offset header before concatenation is not defined for a final upload.
The tus protocol only covers the first and second phase, transfer and assembly.
When no preprocessing happens, we can return the etag and new fileid immediately.
While preprocessing is in progress we want to show the progress when listing the containing folder. This might be a custom PROPFIND request or property? during progress the etag and fileid won't hale changed, but we might return a progress property? Similar to the async / lazy ops header, which returns a location that clients can use to poll for changes.
AFAICT we need to either extend the FinishUpload method of the tus backend implementations or register hooks that can start the preprocessing properly, keep track of progress and finalize the upload by making the file available to the user / moving it to the correct destination.
postrocessing should not produce anything the clients need.
But for all of this we need a workflow. AFAICT the client may not get a new etag until the upload has passed the finishing phase.
as discussed, we'd need to invent a new TUS extension for async.
the extension would return extra headers to signal that it's going into async mode (like Lazy-Ops)
changed the title [-]implement async progress reporting for upload / assembly[/-][+]Implement async progress reporting for upload / assembly[/+]on Jan 13, 2021
cc @dragotin This boils down to a state machine for uploads. Then file listings could return the state of a file as well: transfer, assembly, preprocessing, finishing, postprocessing. See #214 (comment)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.
Activity
butonic commentedon Apr 21, 2020
thx @michaelstingl for asking about this
butonic commentedon Apr 22, 2020
@felixboehm I wonder if we can use websockets for clients and how this integrates with a push server ... maybe related appleboy/gorush#194
michaelstingl commentedon Apr 22, 2020
I think as a fallback, we'll always need pull/polling-based approach. But it would be cool to have the more fancy options too.
butonic commentedon May 19, 2020
AFAICT an upload has multiple phases:
The tus protocol only covers the first and second phase, transfer and assembly.
When no preprocessing happens, we can return the etag and new fileid immediately.
While preprocessing is in progress we want to show the progress when listing the containing folder. This might be a custom PROPFIND request or property? during progress the etag and fileid won't hale changed, but we might return a
progressproperty? Similar to the async / lazy ops header, which returns a location that clients can use to poll for changes.AFAICT we need to either extend the FinishUpload method of the tus backend implementations or register hooks that can start the preprocessing properly, keep track of progress and finalize the upload by making the file available to the user / moving it to the correct destination.
postrocessing should not produce anything the clients need.
But for all of this we need a workflow. AFAICT the client may not get a new etag until the upload has passed the finishing phase.
PVince81 commentedon May 19, 2020
as discussed, we'd need to invent a new TUS extension for async.
the extension would return extra headers to signal that it's going into async mode (like Lazy-Ops)
refs commentedon Jan 12, 2021
@butonic want to keep this open?
[-]implement async progress reporting for upload / assembly[/-][+]Implement async progress reporting for upload / assembly[/+]butonic commentedon Mar 8, 2021
cc @dragotin This boils down to a state machine for uploads. Then file listings could return the state of a file as well:
transfer,assembly,preprocessing,finishing,postprocessing. See #214 (comment)stale commentedon Jun 6, 2021
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.
fschade commentedon Jun 4, 2024
Please open again if the ticket is still relevant