A lightweight CLI tool for automating file uploads to Discord via webhooks. Designed to be easily used as a plugin for larger projects, Discord-Uploader
provides a simple way to send files, text, and JSON payloads to Discord.
-
Simple CLI usage – Easily integrate into other programs
-
Supports file, text, and JSON uploads to Discord webhooks
-
Standalone executable – No need for additional installations
-
Uses libcurl for cross-platform compatibility (Linux supported, Windows/macOS coming soon)
-
Future Plans:
- GUI version
- Windows/macOS support
- File splitting for large uploads
Currently, only Linux is supported for the easy install method.
- Download the latest binary from the Releases page.
- Place the executable in a directory included in your system
PATH
. - Run the program using the command-line options below.
Not recommended unless modifying the source code.
- Clone the repository:
git clone https://github.com/Hunter2718/Discord-Uploader.git cd Discord-Uploader
- Install
libcurl
if not already installed:sudo apt install libcurl4-openssl-dev # Debian/Ubuntu
- Compile using
gcc
:gcc -o discord-uploader main.m -lcurl
./discord-uploader --file {pathToFile, optional} \
--json {jsonString, optional} \
--text {textString, optional} \
--webhook {discordWebhook, required} \
--help {showsHelpMessage, optional}
Note: At least one of
--file
,--json
, or--text
must be provided.
./discord-uploader --text "Hello from CLI!" --webhook "YOUR_WEBHOOK_URL"
./discord-uploader --file "./example.png" --webhook "YOUR_WEBHOOK_URL"
./discord-uploader --json '{"content": "Hello, JSON!"}' --webhook "YOUR_WEBHOOK_URL"
- Open Discord and go to your server settings.
- Navigate to Integrations > Webhooks.
- Create a new webhook and copy the Webhook URL.
- Use this URL with
Discord-Uploader
to send messages.
For a detailed guide, see: How to Create a Discord Webhook.
- Maximum file size: Discord allows files up to 8MB for free users.
- Rate limits: Discord enforces webhook rate limits (5 requests per second).
- Currently, only Linux supports the easy install. Windows/macOS support is planned.
Ensure you provide a valid webhook URL using --webhook
.
Check that the file path is correct and that the file exists.
Ensure the JSON string is properly formatted. Test it with a JSON validator.
Coming soon – GIF demonstration of usage.
Contributions are welcome! Please see our CONTRIBUTING.md for guidelines.
See LICENSE.md for more details.