file size limited when uploading

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
sketch
-


Joined: 30 Jul 2004
Posts: 4

PostPosted: Thu Aug 12, 2004 6:32 pm    Post subject: file size limited when uploading Reply with quote

I thought about entering this post in the CGI forum since it doesn't seem PHP related, but since I can't test other languages, I'll stick it here...

I'm working on a web-based asset management system which features file uploads. Since I knew we'd be working with huge files (upwards of 100megs), I installed PHP with a upload limit of 200 megs. After about a week of troubleshooting and debugging, I finally got the upload to work the way I wanted, but then I noticed there's a file size limit!

I've searched thru this forum on things regarding file sizes, limits, uploads, etc., and while none featured a concrete resolution (I couldn't find any replies to report success or failure), I found one post where "aprelium" claims the X1 server does not limit upload size (if I read it right). Well, I've tried everything, including setting the MAX_FILE_SIZE to 20480000 in my upload form, and X1 is the only thing left I can think of that's limiting my uploads. I know it's not a timeout issue because timeout is set to 30 seconds, and my error shows within a couple seconds of submitting the form.

More tech details: ... I've narrowed down the size limit to somewhere between 7.6 megs and 8.4... I can't narrow it down any further because I don't have any files with a file size between those two. Also, it seems that submitting a file beyond the size limit empties out the form variables... I do a print_r ($_POST) and the array is empty.

Any help is appreciated.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Aug 12, 2004 6:37 pm    Post subject: Reply with quote

In your php.ini file , you need to set the Max Uploaded File Size !
Back to top View user's profile Send private message Visit poster's website
sketch
-


Joined: 30 Jul 2004
Posts: 4

PostPosted: Thu Aug 12, 2004 6:39 pm    Post subject: Re: file size limited when uploading Reply with quote

If you had fully read my post you'd have seen that
sketch wrote:
I installed PHP with a upload limit of 200 megs.

Thanks for trying, though.
Back to top View user's profile Send private message
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Thu Aug 12, 2004 6:49 pm    Post subject: Reply with quote

I thought I read all of it , sorry about that !
Back to top View user's profile Send private message Visit poster's website
sketch
-


Joined: 30 Jul 2004
Posts: 4

PostPosted: Thu Aug 12, 2004 6:49 pm    Post subject: Reply with quote

No offense meant above, really... it's just many times I've posted (in other forums) and people just gloss over the details, and it gets annoying.

Anywho... I found the problem. In the PHP.INI file, there's a "post_max_size" setting, which defaults to 8M. I've uped it to an appropriate size and it works like a charm now.
Back to top View user's profile Send private message
kelet
-


Joined: 16 Aug 2004
Posts: 6

PostPosted: Thu Aug 19, 2004 11:42 am    Post subject: Reply with quote

You usually have to change it in the php script, too.
Back to top View user's profile Send private message
sketch
-


Joined: 30 Jul 2004
Posts: 4

PostPosted: Fri Aug 20, 2004 12:44 am    Post subject: Reply with quote

You sure you're not thinking about the "MAX_FILE_SIZE" setting in the form? Because that's not the same thing. MAX_FILE_SIZE only limits how big a file can be uploaded... POST_MAX_SIZE affects how much data can be buffered in $_POST.
Back to top View user's profile Send private message
trinity
-


Joined: 11 Nov 2003
Posts: 20
Location: Tampa, FL

PostPosted: Sat Aug 28, 2004 8:30 am    Post subject: Reply with quote

post_max_size (integer)

Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize.

If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.

upload_max_filesize (integer)

The maximum size of an uploaded file.
_________________
Please feel free to visit my websites:
BNBT EasyTracker | The Trinity Forums | The Piscean Realm of ZionMatrix
Back to top View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group