Though I haven't yet installed a self hosted instance of it myself, I've had PrivateBin on my list for a while now. And their Github here.
Welcome if you want few others but not based on files.
Privatebin (https://privatebin.info/) as pastebin like
Lutim (https://framagit.org/fiat-tux/hat-softwares/lutim/-/wikis/home) as "imgur" like
Maybe something like Seafile? Been using it on a small web host before moving to a full VPS, and it has worked reliably. It also has an API, which is supported by ShareX, so you could use Seafile for that as well.
Or perhaps some kind of PasteBin? I have deployed PrivateBin on my host and it has been used by me and my friends regulary. Love the privacy & customization aspects of it.
If you want a truly encrypted Pastebin, I recommend Privatebin (https://privatebin.info/).
I used to host a few instances myself and, as a server admin, I can tell you that you have no access to the content that a user decides to paste. You may only see the folders that are created and delete them, then the pastes will be gone. So, you could self-host it and consider it "safe" to store sensitive data.
And when it comes to password managers, I personally use and recommend Bitwarden since it's free, open-source and includes cloud synchronization.
Per the rules, we keep discussions here, unless there are circumstances that necessitate it being elsewhere, and even then it's based on mod approval.
If you have code that's sensitive, for assignments or whatnot, then you're free to either obfusicate it or use something like privatebin.info so it deletes itself after a specific amount of time.
Post as much code as necessary for us to hopefully replicate the issue and help you solve it.
If you have concerns about privacy, you can setup a privatebin.info and have the code self destruct after a day or so.
I love PrivateBin for this. You can do files, or simply text (i.e. for passwords and such). You can set an optional password, an expiration date, or a 'burn after reading' option. Encrypted browser-side and open source.
It's a pastebin alternative where the server has zero knowledge of the pasted data.
The intent is to allow folks to host their own pastebin solution, especially for countries like France, Germany or Switzerland, were service providers are legally responsible for content that people share on their services. With a traditional pastebin, chat or forum solution, such a service provider would have to (manually or using crappy AI) filter every piece of posted content to their site or run the risk of being sued or become target of criminal prosecution, if a user posts such content on their site.
PrivateBin (and it's predecessor ZeroBin) address this by giving service providers plausible deniability, as they can't filter the content up front and only can act once they are made aware of such content by a third party, sending them a link with key to access the content. At that point they may still be required to remove the infringing content and/or hand out access logs to law enforcement.
Further information can be found on the homepage of the project at https://privatebin.info/
If the files are not too big, you can use PrivateBin: https://privatebin.info/
This works up to 50MB and can be easily self hosted too. If you need to be compliant, you can modify the settings and the source of PrivateBin. I found it to be very GDPR friendly if that's what you mean.
For bigger files, I know some people who use linux's LUKS encryption to upload to AWS.
You could just use something like PrivateBin. You can attach a file. The link can be setup to work for a specified amount of time, indefinitely, or you can do burn after reading.
Maybe a pastebin with self delete, that also allows attachments could be a solution.
Just found https://privatebin.info/. While I've used the software it's based on some years ago I cannot say anything quality wise about privatebin.