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

Go Back   LiteSpeed Support Forums > External Applications > PHP > [Resolved] Upload Issue - Is it Litespeed or PHP?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-27-2010, 07:00 PM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
Question [Resolved] Upload Issue - Is it Litespeed or PHP?

We've recently added the ability for our users to upload multiple files at once. The application we are using has been tested by the company that makes it to support a virtually unlimited amount of files at once, all dependent on your configuration (web server, os, etc...). We have enabled the application to allow our users to upload a max of 40 images.

After testing, we have found that no matter the size of the images (they could all be little emoticons for example), the php script will only see 20 image files max.

We contacted the company that makes the software and they said that it is either a php issue or a web server issue. They've successfully tested the app with up to 100 image files using ASP.

The application just submits a normal POST to the php script to accept the upload.

So my question is, how do we determine if it is Litespeed or PHP? What is limiting the number of uploaded files to be posted to the PHP script?

As far as I understand, PHP only limits the total size of uploads, not the number of uploads.

Is there a setting in Litespeed that limits this to prevent attacks maybe?

Any ideas?

Thanks...

Last edited by NiteWave; 04-28-2010 at 01:57 PM..
Reply With Quote
  #2  
Old 04-27-2010, 09:19 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
this wiki
http://www.litespeedtech.com/support...adprogress_bar

summarize some upload config options in PHP.

there is a limit there since PHP 5.2.1
max_file_uploads 20 PHP_INI_ALL Available since PHP 5.2.1
Reply With Quote
  #3  
Old 04-28-2010, 07:29 AM
robfrew robfrew is offline
Senior Member
 
Join Date: Dec 2007
Location: Salt Lake City UT
Posts: 151
Quote:
Originally Posted by NiteWave View Post
this wiki
http://www.litespeedtech.com/support...adprogress_bar

summarize some upload config options in PHP.

there is a limit there since PHP 5.2.1
max_file_uploads 20 PHP_INI_ALL Available since PHP 5.2.1
Thanks for the info, I actually found it in the online php docs soon after I made the post. Because it was added in 5.2.1, I never knew it existed. Nice security feature though.
Reply With Quote
  #4  
Old 06-02-2010, 11:13 AM
-j0 -j0 is offline
New Member
 
Join Date: Jun 2010
Posts: 3
Thank you!
Reply With Quote
Reply

Tags
php post limited files

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:19 AM.



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