mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
fix: invalid path when uploading files
This commit is contained in:
parent
e6ffb65374
commit
9072cbce34
2 changed files with 4 additions and 3 deletions
|
|
@ -147,7 +147,8 @@ func tusPostHandler() handleFunc {
|
|||
// Enables the user to utilize the PATCH endpoint for uploading file data
|
||||
registerUpload(file.RealPath(), uploadLength)
|
||||
|
||||
w.Header().Set("Location", "/api/tus/"+r.URL.Path)
|
||||
// Signal the frontend to reuse the current request URL
|
||||
w.Header().Set("Location", "")
|
||||
|
||||
return http.StatusCreated, nil
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue