ShareBin is a simple file-sharing web application that allows users to upload files and receive a unique code to download them later. Files automatically expire after 24 hours to ensure security and prevent storage clutter.
- 📂 Upload Files: Drag and drop or select files manually.
- 🔑 Unique Code: Each upload generates a unique code for downloading.
- 📥 Download Files: Enter the unique code to retrieve your file.
- ⏳ Auto-Delete: Files are deleted after 24 hours.
git clone https://github.com/calvincandiec137/ShareBinV2.git
cd ShareBinV2python3 -m venv venv
source venv/bin/activate # On Windows, use: venv\Scripts\activatepip install -r requirements.txtCreate a MySQL database and update your db.env file with the correct credentials:
DB_HOST=localhost
DB_USER=fileUser
DB_PASSWORD=share_user
DB_NAME=sharebin
Then, create the required table:
CREATE TABLE files (
code VARCHAR(8) PRIMARY KEY,
file_path TEXT NOT NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);streamlit run app.pyThis will start the web app, and you can access it in your browser at http://localhost:8501.
Pull requests are welcome! If you find issues or have suggestions, feel free to open an issue.

