This topic discusses how to deploy JSP demo applications on your server.
To find information about how specific application works, see the Samples by Application topic.
The most typical cause of this problem is a server-side limitation for the maximum POST request length. Usually, it is specified to reduce the risk of DoS attacks. If the request size exceeds some specific value, it is considered malicious, and the upload is broken. In this situation Image Uploader displays the following error message:
Upload failed (the connection was interrupted).
To increase the limit of the maximum upload size, you should set it in the upload script.
DiskFileUpload fu = new DiskFileUpload(); //Set maximum size before a FileUploadException will be thrown fu.setSizeMax(100000000);
If you use the Apache web server, you should adjust its settings, too.
LimitRequestBody
parameter to a necessary value, e.g.:
LimitRequestBody 104857600
If you use another server, refer to its documentation for instructions on configuration.