mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
feat: integrate tus.io for resumable and chunked uploads (#2145)
This commit is contained in:
parent
2744f7d5b9
commit
7b35815754
24 changed files with 694 additions and 66 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue