Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid MIME type in file sync utility

I get the following error in the ExpressionEngine control panel file sync utility: "Invalid mime type, file could not be processed"

This only happens when syncing certain file upload directories after uploading files via FTP.

like image 270
Doug Avatar asked Jan 20 '26 20:01

Doug


1 Answers

ExpressionEngine needs to know what kind of file each file in your directories is. In order to do this it keeps a list of file/MIME types in the config/mimes.php. However some file extensions are not there (flv and mobi to name two relative common files you may upload).

If it does not see the file in that list it will throw that error.

You can add a new file MIME type to the list in mimes.php as follows:

'mobi' => 'application/x-mobipocket-ebook',

For a complete list of file extensions and their MIME types review this list: http://www.iana.org/assignments/media-types/media-types.xhtml

like image 148
Doug Avatar answered Jan 23 '26 03:01

Doug



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!