Hi,

I am having trouble with file uploads on a site I am running. I would like to upload a 3mb PDF to a file field. I'm not getting prompted with an error or anything. The wheel just spins endlessly.

My php.ini file accommodates the following so that would appear to be enough?

upload_max_filesize = 10M
post_max_size = 20M

The destination folder in my files directory has 777 permission.

Any idea what I am doing wrong? I should say I am on a Nginx server if that makes a difference.

Thanks so much.

Comments

ecksley’s picture

I needed to add client_max_body_size 20m; to my etc/nginx/nginx.conf file.

...and restart Nginx of course.

For reference: http://wiki.nginx.org/HttpCoreModule#client_max_body_size