tomdesair / tus-java-server

Library to receive tus v1.0.0 file uploads in a Java server environment
MIT License
128 stars 60 forks source link

Error when upload file to tus on eureka gateway #36

Closed liuyiffan closed 3 years ago

liuyiffan commented 3 years ago

When I integrate my file service into a eureka gateway, I meet a error when I try to upload a file via request /upload Meet a error : me.desair.tus.server.TusFileUploadService: Unable to process request POST http://ip:port/upload. Sent response status 405 with message "POST requests have to be send to /api/file/upload" /api/file is the prefix of this service in my gateway

liuyiffan commented 3 years ago

Found a solution that set strip-prefix: false in zuul, so the full url can be reached in file service.