-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@tus/server@1.1.0 breaking upload. 404 error #620
Comments
There's too little information to help. Please share your integration code and package versions. |
The code matches the examples found in the Readme for both versions. The issue is that if I have a nested path, version 1.1.0 ignores it, while version 1.0.0 tolerates it. For example, my upload is under the Express router path /models. The server is configured with the same path: /tus-data.
but when it comes to PATH and HEAD v.1.1.0 goes to a wrong URL under the express routing.
instead of path that is generated by v1.0.0 code
|
I see, thanks. I didn't realize a breaking change has occurred there. The PR between those versions that did this is likely #515. For now, the simple fix is your |
I see the issue now, in this PR I removed You should be able to fix this by aligning the |
I managed to fix the issue by adding and configuring two more functions generateUrl() and getFileIdFromRequest():
tested on v1.6.0 |
I'm surprised the Have you tried removing both |
I was confused for a second, but the reason you need all three is not because
My guess is that if you didn't create a directory in So for you there's no way around implementing all three. We also have an example for this: |
I had installed @tus/server@1.0.0. After I upgrading to 1.1.0 my upload is broken. Getting 404 error for PATCH and HEAD requests.
Interesting fact is that the files are actually uploaded to S3 bucket
Environment:
node v18.16.1
The text was updated successfully, but these errors were encountered: