413 Request Entity Too Large

Hi Team,

While trying to upload a theme using the curl CLI command mentioned here - Ghost Admin API Documentation,
I received error 413 Request Entity Too Large, although the size of my zipped theme is only 11 M. Please help increase this limit for my Ghost instance running on K8s Pod.

image

What are you using as the reverse proxy?
For example, if you use Nginx, you can increase the upload size limit by modifying “client_max_body_size”

I have used helm chart to deploy and mange ghost instance on K8s, I don’t how can I modify such configuration with that.

You need to look at your k8s config, check how you control Nginx in k8s, it looks like a error from Nginx.

By the way, why don’t you upload the theme directly in Ghost settings?

I checked the nginx configuration, funny thing is this:
client_max_body_size 200m

And it is still failing with this error,
Writing a script for that I needed this.