php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45230 upload_max_filesize ignored
Submitted: 2008-06-10 17:39 UTC Modified: 2008-06-10 23:53 UTC
From: rcable at sciotowireless dot net Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.2.6 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rcable at sciotowireless dot net
New email:
PHP Version: OS:

 

 [2008-06-10 17:39 UTC] rcable at sciotowireless dot net
Description:
------------
I'm trying to do a file upload in php with a webform.
I've set my max filesize to 8192000.
I've modified php.ini
max_execution_time = 60
max_input_time = 120
memory_limit = 128M
post_max_size = 12M
upload_max_filesize = 8M

I cannot send a file larger than 2M up to the server.
And when I run phpinfo() it always shows 2M as the upload_max_filesize.

I've also tried ini_set("upload_max_filesize","8192000") to no avail.
The files I'm trying to upload are about 3M so I have quite a bit of headroom with that 8192000 value.

Reproduce code:
---------------
There is no need for source code that I can see as it's a phpinfo() that is showing me where the problem is and no matter what I set upload_max_filesize to, it will not work.

None of the solutions on old bug reports have helped, and since this is the latest edition I guess I'm the first one to report that this isn't fixed with the new release.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-10 23:31 UTC] jani@php.net
Works fine for me. Check from the phpinfo() output that the php.ini file you're editing is actually used by PHP..
 [2008-06-10 23:52 UTC] rcable at sciotowireless dot net
Thanks so much.  I overlooked that for some reason.  It had my php.ini file in /usr/local/lib instead of /etc where I expected it to be.  When I moved the php.ini file there while I was trying to fix it, php stopped working completely so I assumed that wasn't the solution.  I copied a fresh php.ini-dist over to that location and changed my settings and it's working now.

Thanks a million,
R
 [2008-06-10 23:53 UTC] rcable at sciotowireless dot net
I hadn't noticed that it said there was no configuration file loaded.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 17:01:33 2025 UTC