Closed stormbard closed 11 months ago
Good catch. We need to define a path because the server can also be used standalone. But regardless of that, it makes sense to only accept a path for resumable uploads and have the rest 404 instead of blindly accepting any path by inferring it from the request.
The example code block in the docs is as follows
If I copy as I get the following error
Error: 'path' is not defined; must have a path
. Adding a path such that it looks like this and it works. The docs should probably be updatedWhy define the path on the tus server since it is ultimately being handled by express? Why not either pull it from the incoming request instead of the config options? As is it means I have to update the path in two locations if I ever decide to change its path.