Quote from: rthrash at May 30, 2007, 12:27 PM
Is the max upload limit in PHP set to 2MB ... the default?
This post just made me think about what had been changed, for the user and sites we tested this morning we set in the custom php.ini (per site)
upload_max_filesize = 30 (without the M at the end)
now on my second server I’ve just installed MODx changed the site PHP.ini to upload_max_filesize = 30M (with the M) and a 3mb file uploads.
I’ve then changed the php.ini to 30 (without the M) and the /php/ dir was deleted.
I’ve just ran both of these tests on multiple sites on my servers and found that
a) upload_max_filesize = 30 - results in /php/ being deleted
b) upload_max_filesize = 30M - the upload works.
So its either a PHP config issue or FCK issue.
One thing that has been puzzling me though is the main php.ini on the server is set as upload_max_filesize = 2M (with the M) however under this setting a file larger than the allowed size results in the dir being deleted.
I’ve just re-verified that with 2M limit if you upload over 2mb the /php/ gets deleted.
So now I’m confused theres definitly a problem on IIS where if max_filesize <= the file you want to upload it will delete the /php/ dir.
Tests above were performed on two Windows 2003 IIS servers, and one desktop PC running IIS.
Thanks
Aaron