View previous topic :: View next topic |
Author |
Message |
CobraNMU Tux's lil' helper
Joined: 12 Apr 2004 Posts: 76 Location: Naperville, IL
|
Posted: Thu May 13, 2004 2:27 pm Post subject: PHP/APACHE2 Uploading File Sizes |
|
|
Hey,
I've spent all morning looking for this problem. I have a php script that uploads a file and creates a thumbnail of it. It works fine on files under 500k, but anything bigger than that (ex 1MB) don't work. I get the following error in my error_log. I'm using apache2 and php4. The PHP.ini file is okay, and i upped the max_upload_size to 6MB. I was looking around, and everyone who fixed it found thier problem in the php.conf file (which i think is the php.ini file) and they said to look for RequestLimitSize. Can someone tell me where that is or how to fix it in gentoo's distro of apache2?
Here's the Error:
Requested content-length of 734780 is larger than the configured limit of 524288, referer:
Thanks. |
|
Back to top |
|
|
vonhelmet l33t
Joined: 06 Apr 2004 Posts: 770 Location: Somewhere in a school
|
Posted: Thu May 13, 2004 2:35 pm Post subject: |
|
|
Can you post the code of the page? The sections dealing with the upload and the processing of the image? |
|
Back to top |
|
|
CobraNMU Tux's lil' helper
Joined: 12 Apr 2004 Posts: 76 Location: Naperville, IL
|
Posted: Thu May 13, 2004 2:39 pm Post subject: Hope this helps |
|
|
<form method="post" action="addnewuser.php" enctype="multipart/form-data">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td width='70'>Name</td>
<td><input name="name" type="textbox"></td>
</tr>
<tr>
<td> </td><td> </td>
</tr>
<tr>
<td width='70'>Picture</td>
<td><input type="hidden" name="MAX_FILE_SIZE" value="2097152">
<input name="pic" type="file"></td>
</tr>
<tr>
<td> </td><td> </td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Submit" value="Add Picture">
<input type="reset" name="Reset" value="Clear Form"></td>
</tr>
</table>
</form> |
|
Back to top |
|
|
vonhelmet l33t
Joined: 06 Apr 2004 Posts: 770 Location: Somewhere in a school
|
Posted: Thu May 13, 2004 3:34 pm Post subject: |
|
|
What about the bit that actually does something with the file once it's been uploaded?
I'll check my box and see if I have a php.conf file, but in the mean time you can always just try
and see what turns up. |
|
Back to top |
|
|
CobraNMU Tux's lil' helper
Joined: 12 Apr 2004 Posts: 76 Location: Naperville, IL
|
Posted: Thu May 13, 2004 3:53 pm Post subject: still lost |
|
|
It bombs out before getting to that page. |
|
Back to top |
|
|
CobraNMU Tux's lil' helper
Joined: 12 Apr 2004 Posts: 76 Location: Naperville, IL
|
Posted: Thu May 13, 2004 4:55 pm Post subject: GOT IT! |
|
|
Turns out, in gentoo's version of apache2, you go to /etc/apache2/conf/modules.d/70mod_php.conf and the size is in there to change.
yay! Thanks for the locate command reminder! |
|
Back to top |
|
|
|