Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SadmL opened this issue Oct 23, 2024 · 1 comment
Open

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

SadmL opened this issue Oct 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@SadmL
Copy link

SadmL commented Oct 23, 2024

Site

phanpy.sadium.cyou

Version

2024.10.23. 36ce4c5

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
superseriousbusiness/gotosocial#1900 (comment)
I can upload mp3 via self-hosted Elk

изображение
so this is not GtS problem

@SadmL SadmL added the bug Something isn't working label Oct 23, 2024
@graue
Copy link
Contributor

graue commented Nov 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants