Endpoint:
GET /file/search?q=&type
Description: This endpoint allows you to search for files by their filename and type.
| Key | Type | Description |
|---|---|---|
| q | String | The search query for the filename |
| type | String | (Optional) The type of file (e.g., image, document) |
- Set the request method to GET.
- Set the URL to:
{{url}}/file/search?q=sample&type=image - (Optional) Add any required headers.
- Click Send to search for files.
curl -X GET "{{url}}/file/search?q=sample&type=image"{
"message": "Files retrieved successfully",
"status": 200,
"result": [
{
"originalname": "sample.png",
"encoding": "7bit",
"mimetype": "image/png",
"destination": "storage/images",
"filename": "123e4567-e89b-12d3-a456-426614174000.png",
"path": "storage\\images\\123e4567-e89b-12d3-a456-426614174000.png",
"size": 204800
}
]
}