Mime Management

IFC cloud allows you to create aliases for mimetypes, so that you can display custom icons for files. For example, you might want a nice audio icon for audiofiles instead of the default file icon.

By default IFC cloud is distributed withnextcloud/resources/config/mimetypealiases.dist.json.Do not modify this file, as it will be replaced when Nextcloud is updated.Instead, create your own nextcloud/config/mimetypealiases.jsonfile with your custom aliases. Use the same syntax as innextcloud/resources/config/mimetypealiases.dist.json.

Once you have made changes to your mimetypealiases.json, use the occcommand to propagate the changes through the system. This example is forUbuntu Linux:

 

$ sudo -u www-data php occ maintenance:mimetype:update-js

 

See Using the occ command to learn more about occ.

Some common mimetypes that may be useful in creating aliases are:

image
Generic image
image/vector
Vector image
audio
Generic audio file
x-office/document
Word processed document
x-office/spreadsheet
Spreadsheet
x-office/presentation
Presentation
text
Generic text document
text/code
Source code

 

 

Mimetype mapping

           Ifc cloud allows administrators to specify the mapping of a file extension to amimetype. For example files ending in mp3 map to audio/mpeg. Whichthen in turn allows IFC cloud to show the audio icon.

By default Nextcloud comes with mimetypemapping.dist.json. This is asimple json array.Administrators should not update this file as it will get replaced on upgradesof Nextcloud. Instead the file mimetypemapping.json should be created andmodified, this file has precedence over the shipped file.

 

 

Icon retrieval

When an icon is retrieved for a mimetype, if the full mimetype cannot be found,the search will fallback to looking for the part before the slash. Given a filewith the mimetype ‘image/my-custom-image’, if no icon exists for the full mimetype, the icon for ‘image’ will be used instead. This allows specialisedmimetypes to fallback to generic icons when the relevant icons are unavailable
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

User Management -I

User Management -I User Management Creating a New User Reset a User’s Password...

Uploading big files

  Uploading big files The default maximum file size for uploads is 512MB. You can increase...

Providing Default Files

You may distribute a set of default files and folders to all users by placingthem in directory...

Automated tagging of files

IFC’s Files Automated Tagging app allows to assign collaborative tagsto files and folders based...

Table of Contents

List of All Topics Coverd User Management  User Management-I User Management -II...

Powered by WHMCompleteSolution