What version of phpBB are you using? phpBB 3.3.11
What is your board's URL? https://www.norduserforum.com
Who do you host your board with? all-inkl.com
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Fresh Install
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? Yes
What extensions do you have installed? board3 Portal
Pages
What styles do you currently have installed? prosilver
What language(s) is your board currently using? english
Which database type/version are you using? MariaDB
What is your level of experience? Experienced with PHP and phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? The problem is always there even in a fresh install.
Please describe your problem. I have an mp3 player html5 based that turns uploaded mp3 files into a player.
It works perfectly almost everywhere, but on the MACOS (only in Safari) and iOS (all browsers), they do not playback.
It seems the issue is due to the mime-type not being "mpeg/audio", but as always except for images octet-stream.
So to test, and taking into considerations potential secutory issues, I would like to have downloads having a HTTP header with the mime-type stored in the attachments table (or at least for mp3 files).
I tried it by disabling this part in functions_download.php
Code: Select all
// Correct the mime type - we force application/octetstream for all files, except images
// Please do not change this, it is a security precaution
if ($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';
}
Here an example post where you see the players:
https://www.norduserforum.com/viewtopic.php?t=7456
Generated by SRT Generator