LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > max_file_size

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2008, 04:25 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 729
Default max_file_size

Code:
[90.x.x.x:3364-0#APVH_forum...........com] [STDERR] PHP Warning: MAX_FILE_SIZE of 500000 bytes exceeded - file [upload_photo=D:\Documents and Settings\John Doe\My Documents\My Pictures\abcdefgh[1].jpg] not saved in Unknown on line 0
I noticed that on the error_log. I just tried to upload a 3mbyte attachment on my forum and it worked without showing anything on the error_log.

upload_max_filesize = 50M is already set in php.ini.

Last edited by anewday; 04-21-2008 at 04:37 PM..
Reply With Quote
  #2  
Old 04-21-2008, 04:34 PM
PSS PSS is offline
Senior Member
 
Join Date: Jun 2007
Posts: 126
Just a hunch, perhaps tmp folder was unavailable or full.
Is the php.ini with 50M the one LS reads?

Last edited by PSS; 04-21-2008 at 04:36 PM..
Reply With Quote
  #3  
Old 04-21-2008, 04:38 PM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 729
Yes, all my php.ini are the same. /tmp is only 34% used, strange why I was able to upload a 3mbyte attachment.
Reply With Quote
  #4  
Old 04-22-2008, 07:39 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
It is a PHP error, has nothing to do with LSWS.
There is a "max_post_size" configuration may affect this. Please check your php configuration with a phpinfo() page.
Reply With Quote
  #5  
Old 04-22-2008, 10:25 AM
anewday anewday is offline
Senior Member
 
Join Date: Nov 2007
Location: New York
Posts: 729
phpinfo doesn't show max_post_size What other derivatives could affect the size of file uploads?

http://bytes.com/forum/thread567382.html

Confused which is the proper one to use?

post_max_size
or
max_post_size

Last edited by anewday; 04-22-2008 at 10:32 AM..
Reply With Quote
  #6  
Old 04-22-2008, 10:29 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
should be post_max_size
Reply With Quote
  #7  
Old 04-23-2008, 03:24 AM
PSS PSS is offline
Senior Member
 
Join Date: Jun 2007
Posts: 126
These affect uploads, at least

memory_limit
upload_max_filesize
post_max_size
max_execution_time
upload_tmp_dir
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:34 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.