Servlet for (large) files chunked uploading

677 views Asked by At

I am trying to implement a (jetty-based) servlet supporting the uploading of (large) files from a web client, where a little javascript splits some user-selected file into chunks, and sends these chunks to the server using several POSTs with appropriate Content-Range headers (the rationale of this technique is to be able to track progress, pause and resume upload).

I have come up with an HttpServlet overriding the doPost() method, which handles the Content-Range header - i.e. which writes the payload at the specified location into a file on the server.

Is there a better/recommended way to support (large) file upload in a servlet? Is there a set of classes in jetty that does just that?

Thanks in advance

0

There are 0 answers