Error 413 when uploading pictures >8MB #14168
-
NetBox versionv3.6.4 Python version3.10 Steps to Reproduce
Expected BehaviorThe image should be uploaded Observed Behavior
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@PaulR282 Are you using netbox-docker by chance? |
Beta Was this translation helpful? Give feedback.
-
Yes, I am. |
Beta Was this translation helpful? Give feedback.
-
We went through the same thing. It's not a NetBox issue, it's a web server setting in the docker config. You need to add this setting to the docker/nginx-unit.json file.
Then you need to rebuild the container and have the file copied over. We did something like this in the Dockerfile:
That's been working for us nicely. |
Beta Was this translation helpful? Give feedback.
-
Ok, Thanks. I will try it out tomorrow |
Beta Was this translation helpful? Give feedback.
We went through the same thing. It's not a NetBox issue, it's a web server setting in the docker config. You need to add this setting to the docker/nginx-unit.json file.
Then you need to rebuild the container and have the file copied over. We did something like this in the Dockerfile:
COPY docker/nginx-unit.json /etc/unit/
That's been working for us nicely.