Forums

This topic is locked

Changing default limits on file upload size?

Posted 23 Jul 2006 21:01:02
1
has voted
23 Jul 2006 21:01:02 Tim Hodge posted:
If I don't have access to my host's server setup, is it possible to to raise the limit on file upload size? I need my upload area to be able to accept files up to 10 or 20 MB. I have tried Pure pHp upload and come up against a 2MB limit. Thank you.

No ugly websites!
frontlinegraphics.com

Replies

Replied 24 Jul 2006 11:35:28
24 Jul 2006 11:35:28 Patrick Woldberg replied:
You won't get around the setting, you should ask your profider to make this higher.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------
Replied 13 Dec 2006 15:19:16
13 Dec 2006 15:19:16 Reid Brynjolfson replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
You won't get around the setting, you should ask your profider to make this higher.

<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Glad I didn't stop googling for a solution when I saw this post... I was able to get around the default upload / max execution time limits set by my web-host's PHP.INI settings by using an ".htaccess" file (placed in the same folder as the upload PHP script) with the following lines in it:

<ul><li>php_value upload_max_filesize 50M</li><li>php_value max_execution_time 800</li></ul>

Which obviously sets the max upload size to 50Mb and allows 800 seconds to run the script before timing out.

Cheers
Reid
Replied 19 Dec 2006 18:15:46
19 Dec 2006 18:15:46 Roddy Dairion replied:
Be careful with .htaccess because this can be disabled, your host can decide to disable .htaccess usage.

Reply to this topic