Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

v3: Linux mime type bug 8 years 8 months ago #3047

  • jayaich
  • jayaich's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Posts: 92
  • Thank you received: 5
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:
--- 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.                            
     );

Please Inloggen or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.048 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search