cancel
Showing results for 
Search instead for 
Did you mean: 

max size of file upload

jchevalier
Champ in-the-making
Champ in-the-making
Hi,

Is it possible to set the max size for the upload, in order to avoid upload of large files ?

Thanks

Jacques.
5 REPLIES 5

gavinc
Champ in-the-making
Champ in-the-making
No, you can't configure this at the moment. Feel free to raise this as an enhancement request on JIRA.

pparkinson
Champ in-the-making
Champ in-the-making
So, is there a fixed size limit? If so, what is it?

stefano
Champ in-the-making
Champ in-the-making
Do you know if now it is possibile to set the maximum size of the file to upload?
Thank you
bye

abarisone
Star Contributor
Star Contributor
HI,
has this feature been enabled on Alfresco Community 4.0.d?
I can't manage to set the max file upload size before the content is temporarily put on the web server (even using web scripts).
This could lead to JVM Out of Memory or cause a denial of service if multiple clients try to upload huge contents.
The Alfresco upload Java api seems to rely on Apache Commons upload, which in the org.apache.commons.fileupload.FIleUploadBase.java class has this private parameter:
/**
180        * The maximum size permitted for a single uploaded file, as opposed
181        * to {@link #sizeMax}. A value of -1 indicates no maximum.
182        */
183       private long fileSizeMax = -1;
with the correspondant getter/setter.
Can I change this value through Spring or another workaround?
Any update or help would be appreciated.

sgangapa
Champ in-the-making
Champ in-the-making
We have the similar kind of requirement. i'm trying to upload a video file with 200 MB size thru service and it throws me up with Out of memory error. I've set the JAVA_OPTS in server startup file and still getting the same error. any help really appreciated.