Image Upload Guide
Endpoint
Section titled “Endpoint”URL: https://nursery.ankurplus.com/upload_file
Method: POST
Request Body
Section titled “Request Body”The request body should be a JSON object with the following structure:
{ "parameters": { "fileContent": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFI+PgplbmRvYmoKMiAwIG9iago8PC9UeXBlL1BhZ2VzL0tpZHNbMyAwIFJdL0NvdW50IDE+PgplbmRvYmoKMyAwIG9iago8PC9UeXBlL1BhZ2UvUGFyZW50IDIgMCBSL01lZGlhQm94WzAgMCA1OTUgODQyXS9Db250ZW50cyA0IDAgUj4+CmVuZG9iago0IDAgb2JqCjw8L0xlbmd0aCA1Nj4+CnN0cmVhbQpCIDAgMCBUZAooU2hyZWUgU2FpIE51cnNlcnkgLSBMaWNlbnNlIERvY3VtZW50KSBUCkUgVgowIDc1MCBUZAooVGhpcyBpcyBhIHNhbXBsZSBwZGYgZmlsZSB1cGxvYWRlZCBmcm9tIEFOR1VSKyBzeXN0ZW0uKSBUCkVuZAplbmRzdHJlYW0KZW5kb2JqCnhyZWYKMCA1CjAwMDAwMDAwMDAgNjU1MzUgZiAKMDAwMDAwMDc5IDAwMDAwIG4gCjAwMDAwMDE1NSAwMDAwMCBuIAowMDAwMDAyMzkgMDAwMDAgbiAKMDAwMDAwMzQ0IDAwMDAwIG4gCnRyYWlsZXIKPDwvUm9vdCAxIDAgUi9TaXplIDU+PgpzdGFydHhyZWYKNDc2CiUlRU9G", "originalName": "nursery-license-kolar-2025.pdf", "uploadedBy": 1, "systemId": 1, "jwtCode": "dsfdgfdgsfgds", "bucketType": "public", "description": "Nursery license document for Shree Sai Nursery, Kolar" }}Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
fileContent | string | Yes | Base64-encoded file content |
originalName | string | Yes | Original filename of the uploaded file |
uploadedBy | number | Yes | User ID of the logged-in user |
systemId | number | Yes | System identifier: 1 for Nursery App, 2 for Dattaio Dashboard |
jwtCode | string | Yes | JWT token code of the logged-in user |
bucketType | string | Yes | Storage bucket type: "public" or "private" |
description | string | No | Optional description of the file |
Response
Section titled “Response”Success Response
Section titled “Success Response”{ "success": true, "file_name": "3C1mogOuQw8wV4k.pdf", "file_type": "application/pdf", "file_extension": "pdf", "file_size": 519, "file_bucket": "PUBLIC"}Response Fields
Section titled “Response Fields”| Field | Type | Description |
|---|---|---|
success | boolean | Indicates if the upload was successful |
file_name | string | Generated filename for the uploaded file |
file_type | string | MIME type of the uploaded file |
file_extension | string | File extension (without the dot) |
file_size | number | Size of the file in bytes |
file_bucket | string | Storage bucket where the file was saved (PUBLIC or PRIVATE) |