https://3dapi.nbsk.top/upload.php
Method: GET
URL: https://3dapi.nbsk.top/upload.php
Parameters: None
Response:
{
"success": true,
"count": 3,
"files": [
{
"id": 1,
"filename": "2025-12-10_123456.txt",
"original_name": "example.txt",
"size_bytes": 1024,
"mime_type": "text/plain",
"uploaded_at": "2025-12-10 12:00:00",
"url": "https://3dapi.nbsk.top/uploads/2025-12-10_123456.txt"
}
]
}
Method: GET
URL: https://3dapi.nbsk.top/upload.php?id=FILE_ID
Parameters:
id = File ID to fetchResponse:
{
"success": true,
"file": {
"id": 1,
"filename": "2025-12-10_123456.txt",
"original_name": "example.txt",
"size_bytes": 1024,
"mime_type": "text/plain",
"uploaded_at": "2025-12-10 12:00:00",
"url": "https://3dapi.nbsk.top/uploads/2025-12-10_123456.txt"
}
}
Method: POST
URL: https://3dapi.nbsk.top/upload.php
Form Data:
file → (binary file)Response:
{
"success": true,
"id": 4,
"filename": "2025-12-10_654321.jpg",
"original_name": "myphoto.jpg",
"size_bytes": 204800,
"mime_type": "image/jpeg",
"uploaded_at": "2025-12-10 12:05:00",
"url": "https://3dapi.nbsk.top/uploads/2025-12-10_654321.jpg"
}
Method: POST
URL: https://3dapi.nbsk.top/upload.php
Form Data:
action = updateid = FILE_IDoriginal_name = NEW_NAMEfile → (optional new file to replace old file)Response:
{
"success": true,
"message": "File info updated"
}
OR
{
"success": true,
"message": "File info and content updated"
}
Method: DELETE
URL: https://3dapi.nbsk.top/upload.php
Body: x-www-form-urlencoded
id = FILE_IDResponse:
{
"success": true,
"message": "File deleted"
}
Note: Make sure your /uploads folder exists and is writable. CORS is enabled, so you can call this API from any frontend.