A Strange Issue of Upload PHP Videos

Hello
I am facing a rare issue while uploading videos, now the test is on .flv 7 mega and .wmv 5 mega

Not Only the file is not getting uploaded, I cannot even see the tmp_name and ize is 0

I have included:

ini_set(“post_max_size”, “10M”);
ini_set(“upload_max_filesize”, “10M”);

and

This is all locally on the localhost, nothing allows for uploading the video

Many Thanks

Are you on windows? Can you post a part of code where you check/move uploaded file?

Hello,
I am unable to upload and override the php.in settings of 2M

I used all this

ini_set(“upload_max_filesize”, “9M”);
ini_set(“post_max_size”, “9M”);
ini_set(“max_execution_time”, “100”);
ini_set(“max_input_time”, “100”);

set_time_limit(100);

No Video Is getting uploaded above 2M

The php.ini settings are 2 M

I also used this

a file 1.8 mega gets uploaded

a file of 5 and 7 mega does not

Many Thanks

Try to override these settings using .htaccess - this works on many unix hostings:

.htaccessphp_value post_max_size 9M php_value upload_max_filesize 9M

Hello, The Only way this worked is when I changed the settings on my php.ini, I am only using thing on my localhost, on my localhost, a .htaccess ruined things, I see a .htacess on the hosting online, Do I have to upload the php.ini as well to the hosting online, or at least to the folder with the issue

This depends on your hosting configuration. But normally you can override php settings either by uploading php.ini or using directives in .htaccess (such php.ini or .htaccess will affect php settings in current directory and subdirectories)

Sponsor our Newsletter | Privacy Policy | Terms of Service