how to set max file size for uploads

vnairp11

Joined: 2006-04-30
Posts: 6
Posted: Tue, 2006-05-09 19:02

Hey how can i set maximum file size for uploads
if a person is uploading a 5mb mp3 for example also does it support uploading of audio files. thanks

 
DynamicSurge

Joined: 2006-05-20
Posts: 2
Posted: Sat, 2006-05-20 05:28

You can set the max upload size limit under "Edit Album"

 
FLUXrider

Joined: 2006-05-18
Posts: 49
Posted: Sat, 2006-05-20 09:42

.... and even then you'll have problems uploading files beyond 2mb per file by the standard upload. I wonder where that file limit is set? Maybe at the host site , but I'm not sure yet. Back to reading :)

FLUXrider
From the love of the ride good things come

 
unniwerz

Joined: 2006-02-01
Posts: 13
Posted: Mon, 2006-06-19 21:08

In php.ini

Quote:
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Enjoy :)

 
triggerman

Joined: 2006-06-27
Posts: 10
Posted: Thu, 2006-06-29 05:07

where is php.ini?

 
DevinC

Joined: 2006-04-03
Posts: 6
Posted: Sat, 2006-07-01 04:21

php.ini is on the webserver. If you're hosting your website on someone's else server, you will need to contact your server admin for this info.

I have a question:

I have contacted my webhost provider and they told me that the limit is set to 2MB and unfortunately, they won't change it to a higher limit because it is systemwide on a shared webhost.

Is there a way to circumvent this problem as I have quite a few video file that can easily exceed this limit?

Thanks,

Devin

 
Robmonster

Joined: 2006-07-25
Posts: 12
Posted: Wed, 2006-07-26 14:54

There certainly is.

Check this link:-

http://codex.gallery2.org/index.php/Gallery2:FAQ#Why_can.27t_I_upload_big_files_.28over_a_megabyte_or_two.29.3F

Worked fine for me. Backup your .htaccess file before you edit it in case you make a mistake.

RM

 
Ru4Real
Ru4Real's picture

Joined: 2006-03-02
Posts: 7
Posted: Thu, 2006-07-27 18:21

Also worth checking out this script:

http://tips-scripts.com/?tip=php_ini#tip

and a couple of others on that site :)

Be sure to check with your host first though!