Answer the question
In order to leave comments, you need to log in
Uploading files > 1 Mb; nginx + fastcgi config?
Good evening.
There was (more precisely, it always was) a problem - files larger than 1 Mb are not uploaded to the site.
Naturally, I first got into php.ini , tweaked upload_max_filesize there to 20M, but that didn't help. I got to the nginx config for a specific site, corrected client_max_body_size :
location / {<br/>
index index.html index.htm index.php;<br/>
client_max_body_size 20m;<br/>
}
2011/10/11 14:48:21 [error] 9111#0: *112 client intended to send too large body: 1237560 bytes, client: 178.217.25.22, server: localhost, request: "POST /api.php?do=upload_image&image=2011.10.11_00h51m26s_004.png HTTP/1.1"
Answer the question
In order to leave comments, you need to log in
In the puff conf, correct two parameters
upload_max_filesize - the size of the uploaded file
post_max_size - max. POST data size
Then restart the web server. Should help
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question