2

I'm trying to increase the maximum upload size into CKAN.

So far I have changed development.ini to read ckan.max_resource_size = 1024 but that didn't help. I also added MAX_CONTENT_LENGTH = 104857600 to datapusher_settings.py but that didn't help either.

According to this StackOverflow post I need to change something inside DataPusher. However that post is over two years old, so I want to check if that information is still correct?

Also, this commit from August 2015 says that the hard coded limit of 10mb has been removed.

I'm running Tomcat, not Jetty. So the issue of Jetty limiting upload sizes isn't applicable.

What am I missing?

Community
  • 1
  • 1
reelyard
  • 931
  • 1
  • 8
  • 29

1 Answers1

2

Found an answer here: Does CKAN have a limit size of data to upload?


Process

Edited my production.ini file (location etc/ckan/default) and changed # ckan.max_resource_size = 10 to ckan.max_resource_size = 100.

The changes I previous made to other files (see my question) may have also contributed to this solution, although I am not 100% sure.

Community
  • 1
  • 1
reelyard
  • 931
  • 1
  • 8
  • 29
  • 4
    If your site is served behind Nginx (it probably is) you also need to add the following line to the Nginx config file: `client_max_body_size 100M;` (eg https://github.com/ckan/ckan-packaging/blob/master/common/etc/nginx/sites-available/ckan#L5) – amercader Mar 24 '17 at 11:57