Skip to content

Conversation

@skauk
Copy link
Contributor

@skauk skauk commented Sep 25, 2025

Important when hosting files in a public bucket. It was an issue for me when using with Cloudflare R2.

Important when hosting files in a public bucket
@mxpv
Copy link
Owner

mxpv commented Oct 8, 2025

hmm. I wonder if we should just get mime type from a file extension like this:

      // Determine MIME type from file extension
      contentType := mime.TypeByExtension(filepath.Ext(file))
      if contentType == "" {
          contentType = "application/octet-stream" // fallback
      }

which is much simpler and doesn't introduce new dependencies.

@skauk
Copy link
Contributor Author

skauk commented Oct 9, 2025

Possible but this approach has limited list of supported types, especially when it comes to media formats. The library on the other hand is solid and handles the job quite well.

@skauk
Copy link
Contributor Author

skauk commented Dec 5, 2025

@mxpv Since I see some activity, want to remind about this one. I have been using podsync with Cloudflare R2 and a custom audio format for the last few months, and it appears to work fine.

@mxpv mxpv merged commit 69abdf3 into mxpv:main Dec 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants