[Media upload] Can't upload audio files via GoToSocial account
Site
phanpy.sadium.cyou
Version
2024.10.23. 36ce4c56
Instance
gts.sadium.cyou
Browser
Librewolf 131.0.3-1 on EndeavourOS Linux (Arch-based)
Bug description
Trying choosing mp3 via filepicker of pasting directly into compose box leads to error that file is not supported
To reproduce
- Go to your Phanpy web-client
- Login into GoToSocial account
- Press C or floating icon to create a post
- Try choose mp3 via filepicker of paste it directly into compose box
- Well-p, you getting the error (screenshot in Bug description section)
Expected behavior
Screenshot of successful upload via Mastodon account
Other
Audio upload was implemented on GtS side https://github.com/superseriousbusiness/gotosocial/issues/1900#issuecomment-2226891470 I can upload mp3 via self-hosted Elk
so this is not GtS problem
I think this is a GoToSocial bug. On your server the instance config endpoint returns:
{
"account_domain" : "gts.sadium.cyou",
"configuration" : {
"media_attachments" : {
"supported_mime_types" : [
"image/jpeg",
"image/gif",
"image/webp",
"audio/mp2",
"audio/mp3",
"video/x-msvideo",
"audio/flac",
"audio/x-flac",
"image/png",
"image/apng",
"audio/ogg",
"video/ogg",
"audio/mp4",
"video/mp4",
"video/quicktime",
"audio/x-ms-wma",
"video/x-ms-wmv",
"video/webm",
"audio/x-matroska",
"video/x-matroska"
],
This contains audio/mp3 but not audio/mpeg. audio/mp3 is a deprecated mime type and is not used by browsers. GTS should advertise support for the standard mime type for MP3 files, audio/mpeg.