Thursday, 22 August 2013

Is there a max file size when uploading as a Multipart File

Is there a max file size when uploading as a Multipart File

HttpPost post = new HttpPost(properties.getPropert("system.api.url"));
post.setHeader("Accept", "application/json");
MultipartEntity entity = new MultipartEntity(
HttpMultipartMode.BROWSER_COMPATIBLE);
entity.addPart("file", new FileBody(file, event.getMIMEType()));
post.setEntity(entity);
This is how I upload the file as a Multipart file to my rest controller.
Is there a max file size that can be uploaded or is there any way that I
can define a max file size foe this kind of uploading. I use this code in
my Vaadin client side.

No comments:

Post a Comment