
- You are not logged in. | Login
November 14, 2006 9:17 pm
- n00bphp
- Member


I can't upload big files! Help!
Hi, I have a php software I installed for uploading the movies to my website, but it doesn't show up after! Please help!
November 14, 2006 9:20 pm
- phppat
- Member


Re: I can't upload big files! Help!
Can you be more specific about the problem?
Do you get any kind of error messages when you try to upload the files?
How large are the files you're uploading?
PHP monster
November 14, 2006 9:24 pm
- n00bphp
- Member


Re: I can't upload big files! Help!
Well, when I go to the page to upload my movie, I just get a box to select a file.
I select the movie file and hit 'upload', and it takes a couple of minutes, and then brings me back to the page, only the file I uploaded doesn't show up.
It's a big file, about 400 megs. I can upload pictures and music fine, just not this movie file.
I don't get any errors or nothing but like i said it takes a long time.
I just know it's a php file and thought someone here might know whats wrong.
Last edited by n00bphp (November 14, 2006 9:25 pm)
November 14, 2006 9:37 pm
- phppat
- Member


Re: I can't upload big files! Help!
I think the file size is your trouble here.
PHP, by default, limits the size of the files you can upload via a webpage to 2 mb, so your 400mb file is far too large.
There are a couple of solutions -
Your best option is to use FTP to upload large files, though in general 400mb is pretty huge for a file on any webpage.
If you absolutely must use PHP to do this, you'll need to modify the php.ini file:
change the line:
upload_max_filesize="2M"
to read
upload_max_filesize="400M"
This again is highly unadvisable. 10M is probably ok (10 megs), maybe even 100, but 400megs is likely to cause your PHP script to exceed the allowed memory (RAM) limit, and stop processing the script.
Using FTP is your best bet, but changing that directive if you have access to it will also work.
PHP monster


