fix: invalid path when uploading files

This commit is contained in:
Ramires Viana authored and Henrique Dias committed 2025-07-13 20:39:43 +02:00
1 parent e6ffb65374
commit 9072cbce34
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -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
})