file upload - Video Uploading in PHP -


$valid_formats = array("mp4"); $max_file_size = ini_set('upload_max_filesize', '100m');  //100 kb $path = "uploads/"; // upload directory $count = 0; echo $_files['files']['size']; if(isset($_post) , $_server['request_method'] == "post"){ echo "hello"; print_r($_files['files']['name']);} 

the above written line executes while uploading other stuffs image , pdf.but fails while uploading video , shows null array

i think has file trying upload large. try increase allowed upload file size changing following values in php.ini , restart webserver:

post_max_size = 16m; upload_max_filesize = 16m; 

i enable error_reporing try find what's going on. can turn on , display errors on page, adding following top of script:

error_reporting(e_all); ini_set('display_errors', 1); 

you can try track down problem looking in log files, instance apache log file under:

/var/log/apache2/error.log 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -