Describe the bug
I updated from an older version of tusd (somewhere in the 0.13s, I think) to the latest version (v1.2.0). Having a base path of / no longer works, it just returns 404 errors. If I set base-path to anything else (/files/ or /resumable/) then it works. Just not a base-path of /.
To Reproduce
Steps to reproduce the behavior:
Run docker run --rm --name tusd -p 127.0.0.1:1080:1080 tusproject/tusd:v1.2.0 -port 1080 -max-size 10737418240 -base-path /
Use uppy on the client side to try to upload with configuration:
[Uppy] [01:29:53] Failed to upload myFile.csv tus: unexpected response while creating upload, originated from request (response code: 404, response text: 404 page not found
Logging from tusd console:
[tusd] 2020/05/25 06:27:47 Using '/srv/tusd-data/data' as directory storage.
[tusd] 2020/05/25 06:27:47 Using 10240.00MB as maximum size.
[tusd] 2020/05/25 06:27:47 Using 0.0.0.0:1080 as address to listen.
[tusd] 2020/05/25 06:27:47 Using / as the base path.
[tusd] 2020/05/25 06:27:47 Using /metrics as the metrics path.
[tusd] 2020/05/25 06:27:47 Supported tus extensions: creation,creation-with-upload,termination,concatenation,creation-defer-length
[tusd] 2020/05/25 06:27:47 You can now upload files to: http://0.0.0.0:1080/
[tusd] 2020/05/25 06:27:49 event="RequestIncoming" method="POST" path="/" requestId=""
Describe the bug I updated from an older version of tusd (somewhere in the 0.13s, I think) to the latest version (v1.2.0). Having a base path of
/
no longer works, it just returns 404 errors. If I set base-path to anything else (/files/
or/resumable/
) then it works. Just not a base-path of/
.To Reproduce Steps to reproduce the behavior:
docker run --rm --name tusd -p 127.0.0.1:1080:1080 tusproject/tusd:v1.2.0 -port 1080 -max-size 10737418240 -base-path /
Error message in browser:
Logging from
tusd
console:HTTP Response body from
tusd
:HTTP Response headers from
tusd
:Expected behavior Upload is successful.
Setup details Please provide following details, if applicable to your situation:
Operating System: macOS host but using Docker image for tusd
Used tusd version:
Used tusd data storage: [e.g. disk store, AWS S3, Google Cloud Storage] Tried with AWS S3 and default
Used tusd configuration: see above command
Used tus client library: Uppy.js