Report any technical problems you discover and discuss solutions.

v3: Linux mime type bug

  • jayaich
  • Onderwerp Auteur
  • Offline
  • Premium lid
  • Premium lid
Meer
10 jaren 11 maanden geleden #3047 door jayaich
v3: Linux mime type bug werd gestart door 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. );

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmjultenJohnSmith
Tijd voor maken pagina: 0.124 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo