Skip to content

Image Upload Guide

URL: https://nursery.ankurplus.com/upload_file
Method: POST

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"
}
}
ParameterTypeRequiredDescription
fileContentstringYesBase64-encoded file content
originalNamestringYesOriginal filename of the uploaded file
uploadedBynumberYesUser ID of the logged-in user
systemIdnumberYesSystem identifier: 1 for Nursery App, 2 for Dattaio Dashboard
jwtCodestringYesJWT token code of the logged-in user
bucketTypestringYesStorage bucket type: "public" or "private"
descriptionstringNoOptional description of the file
{
"success": true,
"file_name": "3C1mogOuQw8wV4k.pdf",
"file_type": "application/pdf",
"file_extension": "pdf",
"file_size": 519,
"file_bucket": "PUBLIC"
}
FieldTypeDescription
successbooleanIndicates if the upload was successful
file_namestringGenerated filename for the uploaded file
file_typestringMIME type of the uploaded file
file_extensionstringFile extension (without the dot)
file_sizenumberSize of the file in bytes
file_bucketstringStorage bucket where the file was saved (PUBLIC or PRIVATE)