Registering "POTX" file type via plugin does not work

I need to make “POTX” files (MS Powerpoint templates) available for download on a client´s website.

Kirby does not recognize this file type, therefore I wrote a little plugin, following the Kirby documentation.

The code of the plugin is quite simple

<?php

Kirby::plugin('secretclient/myfiletypes', [
	'fileTypes' => [
		'potx' => [
			'mime' => 'application/vnd.openxmlformats-officedocument.presentationml.template',
			'type' => 'document',
		],
	]
]);

Problem: The error persists, also after installation of this plugin.

TIA for any hint or advice.

Hm, did a quick test and it worked for me. Have you made sure that the section or field where you are trying to upload doesn’t have any restrictions set via a file template?

What’s your Kirby version?

1 Like

Sorry for bothering you, Sonja. I had an additional error (mismatch between an actual filename and a value stored in a content file)

The plugin works perfectly fine!