It looks like you're new here. If you want to get involved, click one of these buttons!
I have a module which lets you upload videos, so far I have tried uploading a file with .webm format and the error I got was 'The file you are trying to upload is not allowed'. I have searched for this error which is common in CI, went to mimes.php and checked the types, also copied the
editable_asset_filetypes array into MY_fuel.php and added mp4 and webm in media and assets, checked the input being rendered for upload form and its like this
<input type="file" name="userfile" value="" id="userfile_upload" accept="jpg,jpeg,jpe,png,gif,mov,mpeg,mp3,wav,aiff,pdf,css,zip,svg,webm,mp4">.
sanitize_files => FALSE in My_fuel_modules.php.
Started debugging in Upload.php of CI as everywhere I saw the
is_allowed_filetype is buggy, and on line 898
! in_array($ext, $this->allowed_types, TRUE) returns
true which in turn returns
false and upon printing
$this->allowed_types prints this
Array ( => jpg  => jpeg  => jpe  => gif  => png  => zip  => svg ).
So it seems you can't upload any files other than these, so how can I add mimes to this array?
$_FILES also gives type as
application/octet-stream in Safari.