Changing upload limits?

Changing upload limits?

by Stuart Walsh -
Number of replies: 7
Hi all

Just wondering what file it is and where I find it so I can alter the upload size from the native 2mb to 5mb?

If anyone could help it would be appreciated.

Cheers
smoky
Average of ratings: -
In reply to Stuart Walsh

Re: Changing upload limits?

by Dan Doyle -

I believe you'll need to change the upload_max_filesize and/or post_max_size values in your php.ini aswell as possibly change your max_execution_time to allow for the longer time it will take to upload bigger files

In reply to Dan Doyle

Re: Changing upload limits?

by Stuart Walsh -
Thanks for replying, but can't find the php.ini file anywhere, or am I missing something here?

Sorry for my ignorance....wink
In reply to Stuart Walsh

Re: Changing upload limits?

by Dan Doyle -
If you go to "Server" and then "PHP Info" in your site administration and then look through the list that shows up for "Loaded Configuration File" that should point to where your php.ini file is
In reply to Dan Doyle

Re: Changing upload limits?

by Lee Cosner -

I'm having the same problem with changing my upload limit.  I'm on a hosting service and they have made the following changes:

max_input_time =60

upload_max_filesize 24mg

I've made the changes at my end to Moodle (1.8+) but it still only show 8mg limit.

Am I missing something?

Thanks

In reply to Stuart Walsh

Re: Changing upload limits?

by Brian Pool -
Picture of Particularly helpful Moodlers Picture of Plugin developers

What OS are you on...it makes a difference where the files are.  Also, what version of apache?

Brian

In reply to Brian Pool

Re: Changing upload limits?

by Stuart Walsh -

Hi Brian

My OS is Windows XP, my server (the Webserver I pay to have my site housed on) is a Linux server, and I use WS_FTP Pro to upload and view all my files.

I've looked at my files on the webserver but can't find the Apache folder on there either. I downloaded Moodle from the Moodle site and yes, it's in there, but not anywhere I can see in either my FTP program or on the webserver's file system.

I't very bewildering as I know it should be there, I've even gone to my Mac and my Umbuntu machine and searched on their FTP programs on my webserver and at the webserver on those to OS's internet pages.

Only other detective evidence you may want is that I used Fantastic to load it with, made it easy, but if that is the problem, hmm, what do I do?

Hope all this may help gain an answer to my problem, as I'm really running out of options.

Cheers....

In reply to Stuart Walsh

Re: Changing upload limits?

by Eric Hagley -
Picture of Particularly helpful Moodlers
There have been some changes that a lot of hosting companies have made to stop people doing big uploads. You should be able to find a .htaccess file in the root directory (the public_html folder in your file manager folder). In there you will probably find some information about changing upload limits. It is whether or not your host gives you permission to edit that file. You can also add a php.ini file and add the code yourself but again, this may be a problem depending on the host.

As you will see from these two discussions
http://moodle.org/mod/forum/discuss.php?d=39625#p204765
and
http://moodle.org/mod/forum/discuss.php?d=70413#p332072

others have been where you are. In particular, this is important
how to modify max file size with WebHost Manager/cPanel 10
by Clay Burell - Wednesday, 29 August 2007, 06:55 AM

I just discovered this. No need to hunt php.ini or .htaccess if using cPanel 10 with WebHost Manager.

Just go to "PHP Configuration Editor," and scroll down until you see the max file size entry. Input whatever size you want in MB.

My webhost will not allow me to change the php configuration editor. (if on your cpanel, you have a "set theme" button at the top of the front page, choose x3 to go to cpanel 10) You may have to live with a lower upload limit or approach your host to change it for you.
Hope this helps.
Eric