# 📂 File Management System
Welcome to the **File Management System**! This web application allows users to upload, view, update, and delete files securely. Built with PHP and MySQL, this project is perfect for managing user data and file uploads efficiently.
## 📦 Table of Contents
- [Features](#features)
- [Installation](#installation)
- [File Structure](#file-structure)
- [Usage](#usage)
- [License](#license)
- [Contributing](#contributing)
- [Contact](#contact)
## ✨ Features
- **Upload Files**: Easily upload files through a user-friendly interface.
- **View Files**: Browse uploaded files with details and download options.
- **Update Files**: Modify existing files in the system.
- **Delete Files**: Remove files safely from the database.
- **Privacy and Terms**: Clearly defined privacy policy and terms of service.
## 🛠️ Installation
To set up this project locally, follow these steps:
1. Clone this repository:
```bash
git clone https://github.com/Anticoder03/file-management-system.git
-
Navigate to the project directory:
cd file-management-system
-
Import the SQL file to your MySQL database:
-- Import uploads.sql
-
Configure the database connection in
conn.php
:<?php // Database configuration $servername = "localhost"; //hostname $username = "root"; //dbusername $password = ""; //dbpassword $dbname = "file_management"; // Create a new MySQLi connection $conn = new mysqli($servername, $username, $password, $dbname); // Check the connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } else { // echo "Connected successfully!"; } ?>
-
Open the project in your web browser:
http://localhost/file-management-system/index.php
file-management-system/
├── delete.php # Script to delete files
├── index.php # Home page
├── privacy_policy.php # Privacy policy page
├── terms_of_service.php # Terms of service page
├── update.php # Update file details
├── upload.php # Handle file uploads
├── uploads.sql # SQL file for database setup
├── upload_form.php # File upload form
├── view_files.php # View uploaded files
├── _Footer.php # Footer component
├── _Nav.php # Navigation component
├── conn.php # Database connection file
- Upload a File: Navigate to the upload form, select a file, and click upload.
- View Files: Check the list of uploaded files and download or delete as needed.
- Update File: Click the update button next to a file to edit its details.
This project is licensed under the MIT License. You can freely use, modify, and distribute this project as long as you include the original license.
Contributions are welcome! If you have suggestions or improvements, feel free to create a pull request.
For questions, feel free to reach out:
- GitHub: Anticoder03
- Email: ap5381545@gmail.com
Thank you for checking out this project! 🎉 We hope you find it useful!