Report any technical problems you discover and discuss solutions.

v3: Linux mime type bug

Plus d'informations
il y a 10 ans 11 mois #3047 par jayaich
v3: Linux mime type bug a été créé par jayaich
Hello,

Under Linux JPEG files have the MIME type of 'image/jpeg', and XML files have the type of 'application/xml'. The MIME type check of uploaded files does not cater for these, so uploading JPEG images or importing projects (which contain XML files) fail. The patch for this is:
Code:
--- plugins/file_uploading-mimetype.php.orig 2015-07-29 23:17:23.000000000 +0100 +++ plugins/file_uploading-mimetype.php 2015-08-20 10:44:04.389654926 +0100 @@ -53,6 +53,7 @@ 'text/xml', 'image/jpg', + 'image/jpeg', 'image/png', 'image/bmp', 'image/gif', @@ -72,6 +73,7 @@ 'application/msword', 'application/vnd.ms-powerpoint', // ?? 'application/pdf', + 'application/xml', 'text/rtf', // add other 'permissible' formats here. );

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ronmjultenJohnSmith
Temps de génération de la page : 0.138 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo