PHP

Multiple File Upload API

REST API & Dynamic Directory Handler
POST /upload.php
Upload Files
uploads/
Presets:
Click to browse or drag & drop files here
Accepts multiple files: PNG, JPG, PDF, DOCX, ZIP, MP4, CSV, etc.
Advanced API Options
Uploading files... 0%
API Response & Inspector
// Awaiting request... Submit the form on the left to see live JSON response.
No files uploaded yet.
cURL Example Request
curl -X POST http://localhost/file_upload_api/upload.php \ -F "directory=documents/invoices" \ -F "files[]=@/path/to/invoice.pdf" \ -F "files[]=@/path/to/receipt.png"
JavaScript (Fetch API)
const formData = new FormData(); formData.append('directory', 'documents/invoices'); formData.append('files[]', file1); formData.append('files[]', file2); const response = await fetch('upload.php', { method: 'POST', body: formData }); const data = await response.json();
Notification message