Endpoint:
POST /image/upload
Description: This endpoint allows you to upload one or more image files to the server.
| Key | Type | Description |
|---|---|---|
| images | File | The image file(s) to upload |
- Set the request method to POST.
- Set the URL to:
{{url}}/image/upload - In the Body tab, select form-data.
- Add a key named
imagesand set its type to File. - Choose the image file(s) you want to upload.
- (Optional) Add any required headers (e.g.,
storage: smarterp). - Click Send to upload the image file(s).
curl -X POST "{{url}}/image/upload"
-H "storage: folder/smarterp"
-F "images=@/path/to/your/image.png"{
"message": "Images uploaded successfully",
"status": 200,
"result": [
{
"originalname": "image1.png",
"encoding": "7bit",
"mimetype": "image/png",
"destination": "storage/smarterp",
"filename": "a1b2c3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6.png",
"path": "storage\\smarterp\\a1b2c3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6.png",
"size": 123456
}
]
}