Maximum File Size

Hi,

What is the maximum limit of a single file size which can be uploaded as an attachment in ERPNext
for hosted users and for local users?
Also, what is the way to increase the size limit of a single file?
Is there any capping for number of files to be attached?

1 Like

Ruchin,

File size limit of 1MB is applied on hosted as well as local accounts.

From the the local, you can remove this restriction from site config. You
can expect to hear more on this on our technical experts.

For hosted account, limit on the file size cannot be increased.

For no. of files which can be attached against a document, you can
configure it for a specific document from Customize Form.

https://erpnext.com/user-guide/customize-erpnext/custom-field

Hi!, i understand that the following file must be edited in order to increase the file size limit?

sites/site1.local/site_config.json

But i do not see here any restriction, only db_name and db_password

Thanks!

add max_file_size": 1000000 in your site_config.json

For other option please see:

https://github.com/frappe/frappe/blob/develop/frappe/data/sample_site_config.json#L9

9 Likes

Is it in Bytes, KB or MB?

File size is in Bytes.

3 Likes

@kolate_sambhaji in case you don’t have such an entry (which is the default) file size is unlimited?

@vrms If file size is not mentioned then it will be 10MB by default.
You can try to attach files with big size, you can also create free account here and test ERPNext.

1 Like

@kolate_sambhaji
This is you are asking about testing on frappe account.

I just want to know is there any capping for maximum file size?

Regards
Ruchin Sharma

@ruchin78 By default there is 10MB limit, you can increase max file size limit depending on your server configuration.

@kolate_sambhaji
@saurabh6790
I doubt it works for heavy files.
I tried increasing file size and then I attached a 33 MB file.
First thin was happened that system stucked and secondly it showed me a dialog box to debug the script.

Actually, I wanted to use this system for document management therefore before using it in full swing I wanted to do a stretch testing for the same.

I appreciate if anyone can help me in this regard or anyone can let me know what is the maximum limit of file size.

Note: I am using on my local instance installed under vertual machine and I have no issue with the space.

Edit: @umair @vrms

Regards
Ruchin Sharma

@ruchin78 clear-cache and try to upload again.
It should work.

@kolate_sambhaji
I did it and tried so many times but it didn’t work.

Regards
Ruchin Sharma

1 Like