phanpy icon indicating copy to clipboard operation
phanpy copied to clipboard

[Media upload] Can't upload audio files via GoToSocial account

Open SadmL opened this issue 1 year ago • 1 comments

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

  1. Go to your Phanpy web-client
  2. Login into GoToSocial account
  3. Press C or floating icon to create a post
  4. Try choose mp3 via filepicker of paste it directly into compose box
  5. 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

SadmL avatar Oct 23 '24 15:10 SadmL

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.

graue avatar Nov 09 '24 04:11 graue