A modern file uploader built with HTML, CSS, JavaScript, and PHP. This project allows users to upload files via drag-and-drop or file selection, displaying upload progress and status for each file.
- Drag-and-drop file uploading
- File selection via file input
- Real-time upload progress and status
- Cancel upload functionality
- Responsive and accessible design
- HTML5
- CSS3
- JavaScript (ES6+)
- PHP
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/modern-file-uploader.git cd modern-file-uploader
-
Install XAMPP or a similar environment: Ensure you have XAMPP installed, which provides an Apache web server with PHP support. You can download XAMPP from https://www.apachefriends.org/index.html.
-
Set up the project in XAMPP:
- Navigate to your XAMPP installation directory and find the
htdocs
folder (e.g.,C:\xampp\htdocs
on Windows. - Copy the
modern-file-uploader
folder from step 1 into thehtdocs
directory.
- Navigate to your XAMPP installation directory and find the
-
Start Apache server:
- Open XAMPP control panel and start the Apache server.
-
Access the project:
- Open your web browser and navigate to
http://localhost/modern-file-uploader
to view the file uploader application.
- Open your web browser and navigate to
- Open the file uploader in your browser.
- Drag and drop files into the upload box or click the browse button to select files.
- Monitor the upload progress and status for each file.
- Cancel uploads if needed.
modern-file-uploader/
├── uploads/ # Folder where uploaded files are stored
├── index.html # Main HTML file
├── style.css # CSS styles
├── script.js # JavaScript code
└── api.php # PHP backend script