Warning
This project is currently under non-active development. While it's functional, some features may be incomplete or subject to change. Use with caution in production environments.
Hynse Upload is a robust and efficient file upload server built with Next.js and Bun. It offers a seamless file sharing experience with temporary storage and easy management.
Note
Hynse Upload is designed for temporary file storage. Files are automatically deleted after a set period.
- 📁 Drag-and-drop file uploads
- ⏳
Temporary file storage with Redison rewrite - 🚀 Asynchronous file handling
- 🧵
Multithreaded server-side processingon rewrite - 🛡️
Rate limiting to prevent abuseon rewrite - 📊 Comprehensive logging system
Important
Ensure you have Redis installed and running on your system before starting the application.
- Clone the repository
git clone https://github.com/MidnightTale/hynse-upload.git
cd hynse-upload
- Install dependencies
bun install
-
Set up Redis Ensure Redis is installed and running on your system.
-
Configure the application Edit
config.js
to set your desired options. -
Run the development server
bun --bun run dev
- Open the application Visit http://localhost:3000 in your browser.
Caution
Be careful when modifying the config.js
file. Incorrect settings may cause the application to malfunction.
Method | Route | Description |
---|---|---|
POST | /api/upload |
Upload files |
GET | /d/:fileId |
Download a file by ID |
Note
The custom server routes are handled directly by Express, bypassing Next.js routing.
Run administrative commands using:
node cli.js [command]
Warning
Some CLI commands may permanently delete files or clear data. Use with caution.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.