Sorok-Dva / ScreenMe

ScreenMe is a versatile screenshot tool that allows you to capture, edit, and upload your screenshots online effortlessly. Enhance your productivity with its intuitive editing features and seamless online sharing.
https://screen-me.cloud/
MIT License
3 stars 3 forks source link

Custom upload endpoint (own your data) #1

Open JeroenAdam opened 2 months ago

JeroenAdam commented 2 months ago

Hi, for users who wish to own their data, at the moment there is no way to specify an own server (local of cloud). I tested with another known tool (ShareX) and it works with the below input.

BTW, my use case is the same as I've seen in your ScreenMe demo: upload a file, URL copied to clipboard (if possible automatically, without having to do an extra button click).

Maybe this new feature can be made accessible in the tray, or alternatively via a config file. Here the needed input:

Name: MyLocalServer (for UI purposes, in case maybe one out of multiple servers could be selected) Method: POST Request URL: http://localhost:8080/api/v1/upload Headers: X-API-KEY / MySecretApiKey Body: Form data (multipart/form-data) File form name: file (a value of 'file' is the standard, maybe not all servers follow the standard)

I've taken a look at your code, in my example it is just the URL and the header which differ.

Sorok-Dva commented 2 months ago

Hello,

I'll take a look ASAP to see how I can implement your idea into ScreenMe.

Thanks for getting involved in this project !