prevent multiple post-process triggering of upload-resumable (#4175)

* prevent multiple post-process triggering of upload-resumable

* switch from 409 to 503 for upload being processed

* Improve resumable upload check

Co-authored-by: Chocobozzz <me@florianbigard.com>
This commit is contained in:
Rigel Kent
2021-10-25 17:42:20 +02:00
committed by GitHub
co-authored by Chocobozzz
parent b2ad0090c1
commit 276250f0a3
10 changed files with 107 additions and 13 deletions
+7
View File
@@ -2081,6 +2081,13 @@ paths:
description: video unreadable
'429':
description: too many concurrent requests
'503':
description: upload is already being processed
headers:
'Retry-After':
schema:
type: number
example: 300
delete:
summary: Cancel the resumable upload of a video, deleting any data uploaded so far
description: Uses [a resumable protocol](https://github.com/kukhariev/node-uploadx/blob/master/proto.md) to cancel the upload of a video