matrix-org / matrix-org/matrix-js-sdk
Uploading audio files
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.2k
- Forks
- 704
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 40
Description
I'm working on a feature to upload audio files in React Native using matrix-js-sdk uploadContent method. How can I upload audio files correctly so I will get link with audio extension (for example mp3 or m4a)? I cannot figure it out. I tried converting audio files to base64 and then to buffer but I get links with no extension and I cannot play them. Any help will be appreciated.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the matrix-js-sdk uploadContent entry point and its React Native usage. Check how audio MIME types and media URLs are handled, then verify the result with an mp3 or m4a upload and confirm that the returned media can be played.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- api, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100