Codeigniter video uploads not working Codeigniter video uploads not working codeigniter codeigniter

Codeigniter video uploads not working


I also meet the same issue. But now its working fine for me.

Efectively you have to change two parameters in PHP ini file

post_max_size = 100Mupload_max_filesize = 100M

But you may also want to change the apache abuse protection parameter (100M)

LimitRequestBody 1073741824

And by another hand, PHP have a time limit too of 30 sec per script, so your script will die at 30 seconds of running.

You may also want to increase the time to be sure your script does not die meanwhile you are uploading, copying etc,

set_time_limit(600);  // 10 minutos execution

Found this answer from Here


add mp4 format to allowed_types, as:

$config['allowed_types'] = 'mov|mpeg|mp3|avi|mp4';

and add mime type for mp4 in your config/mimes.php if does not exist already, as:

'mp4' => array('video/mp4', 'application/octet-stream')