Larger upload size

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zxkelxz
Forum Newbie
Posts: 11
Joined: Wed Dec 22, 2010 9:17 am

Larger upload size

Post by zxkelxz »

So after editing my php.ini file I find the user is still not allowed to upload files larger than around 10mb. I tried changing the following to outrageous amounts, but still I was met with failure. If the file was over around 10mb, it wouldn't even flag an error it would just merely look like a refresh occurred, empty upload form.

max_execution_time
max_input_time
memory_limit
upload_max_filesize
post_max_size
default_socket_timeout

I'm new at this thing and even though some of the things I edited may have nothing to do with file uploads, just from reading the description in the php.ini and a little research I thought it did.

I know it's best to upload big files by FTP from doing a little research, but out of curiosity how would you set up the php.ini file to handle lets say a 50mb-100mb file.
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Larger upload size

Post by social_experiment »

If you are refering to uploads via html form, have you set the MAX_FILE_SIZE value higher?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
zxkelxz
Forum Newbie
Posts: 11
Joined: Wed Dec 22, 2010 9:17 am

Re: Larger upload size

Post by zxkelxz »

upload_max_filesize is what I changed the value for.

MAX_FILE_SIZE on a search through the php.ini file does not appear.
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Larger upload size

Post by social_experiment »

zxkelxz wrote:MAX_FILE_SIZE on a search through the php.ini file does not appear.
Yeah you won't find it there. It's related to the form that handles the uploads but nevermind, i just saw that it's not that relevant.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply