Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
PHP File Uploads with MiniApache
Name: jam14online Date: March 19, 2005 at 01:26:12 Pacific OS: Windows XP Pro SP2 CPU/Ram: Athlon 2.2 GHz/256MB DDR
Comment:
Hi,
I am trying to get file uploads in PHP to work properly and I think I may be overlooking something obvious. I'm using MiniApache_PHP.
It will let me upload small files (I tried small text files and they work fine) but nothing much bigger. I'm not sure whether it's my configuration files or the actual test script.
Name: anonproxy Date: March 19, 2005 at 14:28:23 Pacific
Reply:
php.ini usually sets this to either 2MB or 5MB upload max. Bump up upload_max_filesize and post_max_size in the config file.
Apache also has a LimitRequestBody value in httpd.conf, but you should get a 4-hundred-something error if you reach that limit (it can be under a 1MB though).
0
Response Number 2
Name: jam14online Date: March 19, 2005 at 22:57:56 Pacific
Reply:
OK I stupidly had all of the directives you mentioned set to incredibly low values in httpd.conf and php.ini.
Summary: I can think of a few possible causes... 1. You forgot to set post_max_size, which needs to be greater than max_upload_size. 2. Your script is timing out on larger downloads...Change script timeout t...
Summary: I posted this a while ago regarding PHP multiple file uplaod...here it is again I have a form where multiple files are being uploaded. If the file size is less that 100K, all the files are uploaded ot...
Summary: Hi, I'm using ajax-php-mysql for one of my projects, I'm facing a problem with file upload, I could not upload it using the same. Kindly help Regards Rajeev ...