Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing large file uploads via HTTP

I need to create a web application based on Apache Tomcat, which can receive large (100 MB or more) files via HTTP (multipart form POST request).

I tried Apache Commons Fileupload and it works for smaller files (20-40 MB). But it doesn't work for large files.

Are there any obvious ways to implement large file upload except

  1. using Java applet at the client side,
  2. tweaking Tomcat's settings?

Update 1 (03.10.2013): Here's the exception that I get at the server side when uploading 2 files with approx. 120 total size.

Exception

like image 598
Dmitrii Pisarenko Avatar asked Jan 13 '23 05:01

Dmitrii Pisarenko


1 Answers

I found another solution. On the FileUpload's web site there is a page about the Streaming API.

The code snippet on that page solved my problem.

like image 128
Dmitrii Pisarenko Avatar answered Jan 23 '23 06:01

Dmitrii Pisarenko