No description
Find a file
2026-04-22 18:33:04 -04:00
index.php Initial commit 2026-04-22 18:33:04 -04:00
LICENSE.md Initial commit 2026-04-22 18:33:04 -04:00
README.md Initial commit 2026-04-22 18:33:04 -04:00

PHP IRCv3 draft/FILEHOST Server

This is a simple PHP implementation of the IRCv3 draft/FILEHOST feature (also known as soju.im/FILEHOST).

It accepts data via POST, along with the users credentials, and then validates those credentials via SASL PLAIN auth and returns the URL to the uploaded resource. Uploaded data is stored in user-specific directories.

You can configure the script by editing the constants in the Configuration section near the top. You can also adjust the array of allowed file types (which in this initial commit are definitely not exhaustive, but Ill come back soon to add common things that are currently missing).

This is in use on the irc.social.lol server, running Ergo, and seems to work great so far. It has not yet been tested extensively with other implementations or bouncers, though.

If youre running Ergo, you can activate this feature by adding these entries in your ircd.yaml file, in the additional-isupport section:

"soju.im/FILEHOST": "https://irc.your-server.tld/upload/"
"draft/FILEHOST": "https://irc.your-server.tld/upload/"

(Youll need to change the URL to match your own configuration/setup, and dont forget to /rehash.)