Welcome Guest, Not a member yet? Register   Sign In
Upload library won't accept midi files
#1

On my website, some users should be able to upload midi-files (mime-type: audio/mid).
I set up my controller to load the upload library. In my configuration I have a setting $config['allowed_types'] = ...
I tried 'mid|midi'. Also tried array('audio/mid','audio/midi'). In either case, I get an error 'The filetype you are attempting to upload is not allowed.'
I echoed the file-type with $error = array('error' => $this->upload->display_errors()). This showed the file-type of the upload file: 'audio/mid', which is in my array of allowed_types. Why is it rejected anyway?
Reply
#2

That is not a correct mime-type, .mid files should be audio/midi (notice i)
Reply
#3

(04-14-2015, 11:43 PM)gadelat Wrote: That is not a correct mime-type, .mid files should be audio/midi (notice i)

Hi Gadelat, I tried that. Like I wrote before:
I tried 'mid|midi'. Also tried array('audio/mid','audio/midi'). In either case, I get an error 'The filetype you are attempting to upload is not allowed.'
Reply




Theme © iAndrew 2016 - Forum software by © MyBB