Jump to content

upload-size limit in php is 16 megs? so if I need larger I need to do thru FTP?


mac007

Recommended Posts

Hello, all: I have a general question on uploading large file uploads, sepcially when it comes to doing "movie" files... I believe the largest "upload-limit" imposed by servers is 16 megs? so if I need to upload larger movie files I would need to do it thru a direct-FTP-script that would allow me to do this?

 

Also, since I am at it... how can I "extract" a poster image of any of these movie uploads so it just shows a "frame" of it, like one sees per example on youtube? it just shows a still frame that you then click and takes you to the actual movie page where it plays...??

 

Thanks for your feedback!

Hello, all: I have a general question on uploading large file uploads, sepcially when it comes to doing "movie" files... I believe the largest "upload-limit" imposed by servers is 16 megs?

If you have access to php.ini you can change this

I don't use .htaccess for this at all: I wouldn't even know how to set an upper filesize limit in .htaccess.

 

There's two settings in php.ini that I have changed:

 

post_max_size = 256M
upload_max_filesize = 256M

I don't use .htaccess for this at all: I wouldn't even know how to set an upper filesize limit in .htaccess.

 

There's two settings in php.ini that I have changed:

 

post_max_size = 256M
upload_max_filesize = 256M

 

and if for some reason you dont have access to the .ini file on your server you can use:

 

<?php
ini_set('post_max_size', '256MB');
ini_set('upload_max_filesize', '256MB');
?>

Those two settings are settable using ini_set() in a script because php uses the current values before the script is executed.

 

You can only set them in the master php.ini, a .htaccess file (when php is running as an Apache module), on in a local php.ini (when php is running as a CGI application.)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.