PHP Forums Archive

Increase max file size for video clips / UPLOAD

Tags: n/a

2noonsie posted on 2010-06-03 23:51:47 #

How do I increase the max file size to accomodate video clips, changes to the "upload demo.php"( $max_size = 1024*100; ) seems to have no affect and also is the a way to save all uploads to a real and public accessible directory... and auto save all to this directory also at the same time.

Thank You

Comments / discussions

Olaf posted on 2010-06-04 04:49:58 #

Hi,

there is also some "global" PHP upload size, check:
http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize

2noonsie posted on 2010-06-04 07:07:05 #

Quote from: Olaf
"Hi,
there is also some "global" PHP upload size, check:
http://www.php.net/manual/en/ini.core.php#ini.upload-max-filesize"

Cool, that worked...is there an easy way to save all the uploads to a real directory?

Thanks for your help.

Olaf posted on 2010-06-04 07:43:24 #

Sorry I don't understand, what do you mean with a "real directory"?

In the script you are able to enter the target directory:

$my_upload->upload_dir = $_SERVER['DOCUMENT_ROOT']."/files/";

maybe you need to use some different location as $_SERVER['DOCUMENT_ROOT'], but that depends on your hosting account.

2noonsie posted on 2010-06-04 09:45:36 #

I got it, sorry didnt even notice the database example. thanks