This is a web-based system that allows users to upload image documents, automatically generates a unique ID, and then lets users retrieve the uploaded file using that ID.
- 📤 Upload documents (PNG, JPG, etc.)
- 🆔 Generate and display a unique ID for each upload
- 🔍 Retrieve document using its ID
- 🗃 Store file details and data in a MongoDB database
- 🌐 Frontend built with HTML, CSS, JS and PHP (for basic testing)
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js with Express.js
- Database: MongoDB
- Uploads: Multer
- Extras: PHP scripts (for database testing and signup)
DOCUMENT-UPLOAD-AND-RETRIEVE/ ├── config/
│ └── db.js # MongoDB connection setup
├── models/
│ └── ... # Mongoose models (if any)
├── node_modules/ # Installed npm packages
├── public/
│ ├── css/ # Stylesheets
│ ├── js/ # Frontend JavaScript
│ ├── about.html # About page
│ ├── contact.html # Contact form
│ ├── db.php # PHP backend example
│ ├── help.html # Help/FAQ page
│ ├── home.html # Homepage
│ ├── image.html # Image upload & retrieve form
│ ├── login.html # Login form
│ ├── register.html # Registration form
│ ├── sign1.php # Signup (PHP)
│ └── test_mysqli.php # PHP-MySQL connection test
├── uploads/ # Uploaded image files
│ └── [UUID].png # Saved using unique IDs
├── .gitignore # Ignore node_modules, uploads, .env
├── README.md # Project readme file
├── package.json # Node project config