I have a simple file upload routine, and if I try to upload a file that is over 500k the upload fails. I get a bad post error or something like that. If the file size is under the 500k size, everything works just fine.
I found that I did not have a php.ini file setup, so I added one in the /usr/local/etc. The php.ini file has the upload and max post set to 8M, and the problem has not been fixed. How do I know that I have put the ini file in the correct location?
Thanks, Eric
Failed upload of file - file too big?
Moderator: General Moderators
-
ejennings_98
- Forum Newbie
- Posts: 8
- Joined: Tue Jun 10, 2003 1:28 pm
- Location: Vancouver, CA
- Contact:
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
If you do:
it should tell you where it thinks the php.ini is.
Mac
Code: Select all
<?php phpinfo(); ?>Mac
-
ejennings_98
- Forum Newbie
- Posts: 8
- Joined: Tue Jun 10, 2003 1:28 pm
- Location: Vancouver, CA
- Contact:
-
ejennings_98
- Forum Newbie
- Posts: 8
- Joined: Tue Jun 10, 2003 1:28 pm
- Location: Vancouver, CA
- Contact:
Found the problem. My distribution is Mandrake 9.1. There was no php.ini config file and the PHP module was compiled with a non standard directory location for the php.ini config file. By using phpinfo(); I was able to determine the location of the config directory, and then set the max upload size to a larger number.
Thanks, Eric
Thanks, Eric