Image Upload API Documentation
Image Upload API Documentation
This API allows users to upload images to the server.
API Endpoint
URL: https://host.odivex.com/upload.php?api=Odivax
Method: POST
Content-Type: multipart/form-data
Request Parameters
Parameter |
Type |
Required |
Description |
image |
file |
Yes |
The image file to be uploaded |
Response Format
{ "status": "success", "image_url": "https://host.odivex.com/img/img_67e85d579b0865.79895693.jpg" }
Error Responses
{ "status": "error", "message": "Invalid request method" } { "status": "error", "message": "No valid image received" } { "status": "error", "message": "Invalid file format" } { "status": "error", "message": "File too large (Max 50MB)" }
Example Usage (HTML + JavaScript)