Welcome to File-Dropzone, a straightforward and efficient file upload web application built with Bun and Express! This application allows you to upload files effortlessly and manage them on your server. Whether you're a developer, student, or professional, you'll find File-Dropzone to be a handy tool for managing your files. 📁
- 📁 Upload Files: Easily upload multiple files at once.
- 📋 File Management: Manage uploaded files on your server.
- 🔒 Secure: Ensure the security of your files with a server-side storage approach.
- 🌐 Cross-Platform: Access the upload functionality from any device with a web browser.
-
Install WSL (Windows Subsystem for Linux): If you don't have WSL installed, follow the instructions here.
-
Install Bun: Open your WSL terminal and run the following command to install Bun:
curl -fsSL https://bun.sh/install | bash
-
Verify Installation: After the installation is complete, type the following command to verify that Bun is installed:
bun --version
You should see the Bun version printed in the terminal.
-
Open a terminal window.
-
Install Bun: Run the following command to install Bun:
curl -fsSL https://bun.sh/install | bash
-
Verify Installation: After the installation is complete, verify that Bun is installed by typing the following command in the terminal:
bun --version
You should see the Bun version printed in the terminal.
To get started with File-Dropzone, follow these steps:
Ensure that you have Bun installed on your machine. You can download Bun from here.
-
Clone the repository:
git clone https://github.com/your-username/file-dropzone.git
-
Navigate to the project directory:
cd file-dropzone
-
Install dependencies:
bun install
-
Set up environment variables:
Create a
.env
file in the root directory, or use the existing file present in your project. Add the following variables:PORT=3000 UPLOAD_DIRECTORY="/path/to/your/upload/directory"
Replace
/path/to/your/upload/directory
with the directory path where you want to store uploaded files. For example:UPLOAD_DIRECTORY="/home/fyzanshaik/Documents/MyUploads"
Ensure the path is enclosed in double quotes.
-
Start the server:
bun run start
-
Access the application:
Open your web browser and go to http://localhost:3000 to access the application.
- Click on the "Choose Files" button.
- Select one or multiple files from your device.
- Click on the "Upload" button to upload the selected files.
- Uploaded files will be stored in the specified directory on your server.
- You can further manage these files directly on your server as per your requirements.
To access File-Dropzone from any device on the same network:
- Ensure that your device is connected to the same network as the server running File-Dropzone.
- Find your IP address by running
ifconfig
on Linux oripconfig
on Windows. - Note down the IP address associated with your Wi-Fi connection.
- In your web browser, navigate to
http://your-ip-address:3000/
(replaceyour-ip-address
with the IP address you noted earlier).e.g., http://192.168.0.1:3000/
- You should now be able to access File-Dropzone from any device on the same network.
Distributed under the MIT License. See LICENSE for more information.
Feel free to explore the features of File-Dropzone and customize it according to your needs. Happy file uploading! 🚀