feat: integrate tus.io for resumable and chunked uploads (#2145)

This commit is contained in:
Tobias Goerke 2023-07-28 18:15:44 +02:00 committed by GitHub
parent 2744f7d5b9
commit 7b35815754
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 694 additions and 66 deletions

View file

@ -32,9 +32,9 @@ func errToStatus(err error) int {
return http.StatusOK
case os.IsPermission(err):
return http.StatusForbidden
case os.IsNotExist(err), err == libErrors.ErrNotExist:
case os.IsNotExist(err), errors.Is(err, libErrors.ErrNotExist):
return http.StatusNotFound
case os.IsExist(err), err == libErrors.ErrExist:
case os.IsExist(err), errors.Is(err, libErrors.ErrExist):
return http.StatusConflict
case errors.Is(err, libErrors.ErrPermissionDenied):
return http.StatusForbidden