Reputation: 411
I have a website where users can upload videos. I have been having an issue with some mp4 not uploading. Specifically ones coming from Android phones. I can get most mp4 upload just fine but the ones form that device are encode in some way that is rejecting them.
Anyone know why this is or a fix for it?
Upvotes: 0
Views: 1679
Reputation: 411
To fix the issue I was having I changed it to 'mp4' => array('video/mp4', 'video/3gpp'),
and now it works. Not sure if this is the best way.
Upvotes: 1
Reputation: 1973
CodeIgniter doesn't recognize the mp4
file as valid, since .mp4 isn't part of the default array of acceptable mime types.
Add this entry to your config/mimes.php
:
'mp4' => 'video/mp4',
Upvotes: 1