Welcome Guest, Not a member yet? Register   Sign In
Mime type missing
#1

[eluser]Référencement Google[/eluser]
Hi,

To allow FLV upload, the mime.php file need the following types:
Code:
'flv' => 'video/x-flv',
'flv' => 'application/octet-stream',
#2

[eluser]Michael Wales[/eluser]
Isn't this server dependent?
#3

[eluser]Référencement Google[/eluser]
I don't think so, and some people complain about it on the forum + I made tests uploading some FLV videos work only if this 2 mime types are added in the mime.php file.
#4

[eluser]xwero[/eluser]
i think
Code:
'flv' => array('video/x-flv','application/octet-stream')
would be better

It's true more than one forum topic was about this mime type
#5

[eluser]Référencement Google[/eluser]
Yes, xwero you are right, I typed too quickly but how you write it is the correct way.
#6

[eluser]Michael Wales[/eluser]
Hmmm - I know I have had similar situations on file uploads (where the mime type that came with CI was incorrect). Well, not incorrect, it just registered on the server as the incorrect type.

If I remember correctly, it was an upload script for images and I had to add 'application/octet-stream' to all of the typical image file extensions.

Like I mentioned previously though, this could have been because of a misconfigured server (XAMPP on Windows, I think).
#7

[eluser]nunomira[/eluser]
Trying to upload an .flv, I was getting a "not allowed filetype" message.

I had to add
Code:
'flv'    =>    array('video/x-flv','application/octet-stream', 'flv-application/octet-stream'),
to mimes.php

I'd say that 'application/octet-stream' should be enough, but searching the internet, each site had a different mime type. Even Adobe.

It would be nice having FLV added to mimes.php by default.




Theme © iAndrew 2016 - Forum software by © MyBB