element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.14k stars 1.98k forks source link

Add a media upload dialogue to the developer tools #9304

Open k80w opened 5 years ago

turt2live commented 5 years ago

What would be the use case?

k80w commented 5 years ago

I'm currently testing a patch for personal use which lets you add background images to rooms. This feature doesn't yet have a UI, and I don't want to implement one until I'm more sure about how it should behave. Currently, the easiest way for me to upload media to the server is to just send a message in a room and copy its URL, but that's a little messier than I'd like. Directly using the Matrix API to upload media would also be a hassle.

While this example wouldn't affect anyone but me, it's likely that in the future other developers would find this tool handy when developing media-related features.

turt2live commented 5 years ago

There's a couple bots out there which spit out the mxc:// URI when an image is uploaded to the room fwiw. They are @mediabot:t2bot.io and @media:maunium.net (different bots, different code, same output and result) - feel free to invite either of them to a room and upload away.