Hacker News new | past | comments | ask | show | jobs | submit login

Was struggling to increase max filesize past 1MB, and got it to 2MB. After lots of running in circles with chatGPT, I finally asked Google for help :) https://stackoverflow.com/questions/67967282/why-is-php-not-...

Here's the other configuration for reference

nginx.conf: http { client_max_body_size 10M; }

php.ini: post_max_size = 10M upload_max_filesize = 10M memory_limit = -1

near nginx client_max_body_size, i also set client_body_buffer_size 100M;, assuming, at worst, 10 people can upload 10MB of content at once?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: