Raj App - File Storage System

System Diagnostics & API Endpoint Reference

❌ Some Tests Failed - Check Details Below
PASS
PHP Version
PHP 8.3.30 is supported.
FAIL
PHP Extensions
Missing required extensions: pdo. Go to Hostinger PHP settings and enable them.
INFO
Upload Limits
upload_max_filesize: 500M | post_max_size: 500M
PASS
Uploads Directory
Uploads folder exists and is writable: /home/u319884090/domains/matavaishnavieducationaltrust.org/public_html/rajapp/uploads/
PASS
File Write Test
Server can write and delete files successfully in the uploads folder.
PASS
Database Connection
Successfully connected to database: u319884090_raj_app
PASS
Database Table
The files table exists in database.
INFO
Stored Files
There are 26 file(s) stored in the database.

📦 Quick Test - Upload a File

📄 View All Files (JSON)

📡 API Endpoints for Your App

POST upload.php
Upload any file type (PDF, image, video, audio, Excel, ZIP, etc.)
Required: file (binary file data)
Optional: category, description, uploaded_by
GET list.php
List all uploaded files with pagination, filtering & search
Optional: category, type (image/pdf/video/audio/document), search, page, limit
GET view.php?id=FILE_ID
View file inline (for images, PDFs, videos, audio)
Add &json=1 to get file metadata as JSON instead
GET download.php?id=FILE_ID
Download any file with the original filename preserved
DELETE delete.php?id=FILE_ID
Delete a file from server and database permanently
Alternative: POST request with id field