Inteliboi / ShareX-Custom-Upload

Custom uploader for ShareX
The Unlicense
42 stars 25 forks source link

Add Embed options pls, like e-z.host #7

Open colouredflower opened 1 year ago

colouredflower commented 1 year ago

Discord embed titles

3045 commented 10 months ago

Easier said than done. Sites like e-z host run their own fully-featured application that does everything from handling uploads to logging it in a database, and then using that stored information (as well as the embed information associated with your user) to present an embed or just the image on the returned URL, and of course the user interface where you can edit such details.

The problem here is that this script has none of that. It's a dead simple uploader that takes your file and stores it in a directory returning the new filename.

At the very least what we'd need to do is keep the uploader the same and introduce a simple processing script that takes requests for images to the directory and adds in the embed data using OpenGraph meta tags pointing to a static JSON file containing your embed, and the associated rewrite rules for the webserver whether it's Apache or NGINX.

You'd need to edit this JSON file to change how your embed looks, but this might be the simplest way to do so without creating an entire web application with a database and the whole lot.

I can give it ago, but I've no idea if @Inteliboi is still alive so maybe it's time for a fork.