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

[Question] Using tus-java-server with dropwizard #9

Closed debraj-manna closed 6 years ago

debraj-manna commented 6 years ago

Is it possible to use this with dropwizard? Is there any documentation or example on how to use this with dropwizard?

tomdesair commented 6 years ago

Hi @debraj-manna,

Yes that's possible. I'll create a small demo tus file upload application with Dropwizard. That should give you a good idea of how to use this library in combination with Dropwizard.

I'll update this ticket when it's ready (soon!).

debraj-manna commented 6 years ago

Thanks @tomdesair that will be really helpful.

tomdesair commented 6 years ago

Hi @debraj-manna

I've created an example Dropwizard web app here: https://github.com/tomdesair/tus-java-server-dropwizard-demo (I've also linked to it in the main README file now). It offers a basic submission form combined with the Uppy tus client to do the (resumable) file uploads.

That repository has a README file that contains some pointers to classes where you should start reading the code. I tried to be as complete as possible leveraging the Dropwizard library without adding too much complexity or confusion. However I'm not very familiar with Dropwizard.

Does this answer your question?

EDIT: Make sure to use version 1.0.0-1.1 of the tus-java-server library.

debraj-manna commented 6 years ago

Thanks @tomdesair