This part in the code includes/functions_download.php
seems to set the mime-type. I tried also adding an exception for audio files to test if it works but seems to not change anything. Any other place I need to change to test passing the mime type from the SQL attachment tables instead of octetstream?
Code:
// Correct the mime type - we force application/octetstream for all files, except images// Please do not change this, it is a security precautionif ($category != ATTACHMENT_CATEGORY_IMAGE || strpos($attachment['mimetype'], 'image') !== 0){$attachment['mimetype'] = (strpos(strtolower($user->browser), 'msie') !== false || strpos(strtolower($user->browser), 'opera') !== false) ? 'application/octetstream' : 'application/octet-stream';}Statistics: Posted by playagiron — Tue May 07, 2024 7:07 am





