LinxShare is an Android app for sending images from your phone to a Linx server that you run yourself. You share an image to LinxShare from another app and tap Upload. Once the upload finishes, the app copies the resulting link to the clipboard so you can paste it wherever you need it.
You set the server address and an API key if your server needs one, along with a default delete key and expiration time. Each upload lets you change those defaults and rename the file. The source code is public under the WTFPL license.
Alternatives to LinxShare
Products that do a similar job in Files & Sync.
Nextcloud
Desktop client that syncs local folders with a Nextcloud server
BentoPDF
Browser and self-hosted PDF toolkit for editing, converting and OCR
dashbeam
peer-to-peer file transfer between nearby devices
ffsend
Command-line client for sharing encrypted files via Firefox Send
Immich Uploader
Android app that sends phone media to a self-hosted Immich server
LocalSend
Sends files between devices on the same local network
Captain qBit
Android remote for managing a qBittorrent server
ownCloud
Android client for syncing and sharing files with a self-hosted ownCloud server