View previous topic :: View next topic |
Author |
Message |
sketch -
Joined: 30 Jul 2004 Posts: 4
|
Posted: Thu Aug 12, 2004 6:32 pm Post subject: file size limited when uploading |
|
|
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 |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Aug 12, 2004 6:37 pm Post subject: |
|
|
In your php.ini file , you need to set the Max Uploaded File Size ! |
|
Back to top |
|
 |
sketch -
Joined: 30 Jul 2004 Posts: 4
|
Posted: Thu Aug 12, 2004 6:39 pm Post subject: Re: file size limited when uploading |
|
|
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 |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Thu Aug 12, 2004 6:49 pm Post subject: |
|
|
I thought I read all of it , sorry about that ! |
|
Back to top |
|
 |
sketch -
Joined: 30 Jul 2004 Posts: 4
|
Posted: Thu Aug 12, 2004 6:49 pm Post subject: |
|
|
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 |
|
 |
kelet -
Joined: 16 Aug 2004 Posts: 6
|
Posted: Thu Aug 19, 2004 11:42 am Post subject: |
|
|
You usually have to change it in the php script, too. |
|
Back to top |
|
 |
sketch -
Joined: 30 Jul 2004 Posts: 4
|
Posted: Fri Aug 20, 2004 12:44 am Post subject: |
|
|
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 |
|
 |
trinity -
Joined: 11 Nov 2003 Posts: 20 Location: Tampa, FL
|
Posted: Sat Aug 28, 2004 8:30 am Post subject: |
|
|
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 |
|
 |
|