Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ktalib/visa
https://github.com/ktalib/visa
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ktalib/visa
- Owner: ktalib
- Created: 2024-09-10T22:36:51.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-13T20:20:25.000Z (4 months ago)
- Last Synced: 2024-11-09T23:09:22.648Z (2 months ago)
- Language: PHP
- Size: 43.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Document Upload System
This project allows users to upload documents to the server and store the file information (including the username and a caption) in a MySQL database. The file upload system includes form validation, file type restrictions, and a file size limit. It uses PHP and MySQL for backend operations and SweetAlert for user notifications.
## Features
- Users can upload files (image files and PDFs).
- File type and size validation (up to 5MB).
- SweetAlert notifications for success and error messages.
- Files are stored on the server and file details are saved in the MySQL database.## Requirements
- PHP 7 or higher
- MySQL
- Web server (Apache, Nginx, etc.)
- SweetAlert (included via CDN in the HTML)## Table Structure
The project uses the following database table:
### `documents`
| Column | Data Type | Description |
|------------|------------|-------------------------------------|
| id | INT | Primary key (auto-incremented). |
| username | VARCHAR(50)| Username of the user who uploaded the document. |
| caption | VARCHAR(100)| Caption or document description. |
| file_path | TEXT | Path to the uploaded file on the server. |
| created_at | TIMESTAMP | Time when the file was uploaded. |## Installation and Setup
1. **Clone the Repository** (or download the project files):
```bash
git clone https://github.com/ktalib/visa.git