I do realize that the issue is more lack of knowledge on my part, but can you help me figure out how using this I could upload the image. I dont see the file to be uploaded in this example. Can this be some via the services tool within the die?
File API
File API allows uploading and download of files. The following API is available:
Note that all File API requires sending X-Appery-Session-Token header. You can get its value when a user is signed in. This is to prevent any one but the user uploading any number of files.
Uploading Files
curl -X POST
-H "Content-Type: [set_to_file_type]"
-H "X-Appery-Database-Id: 498ad4r0e4b9348a121cf6ea"
-H "X-Appery-Session-Token: 900ad7b0e4b9808a456cf5ba"
]https://api.appery.io/rest/1/db/files...
For example, if the file name you want to upload is ABC.jpg, the URL will be:
https://api.appery.io/rest/1/db/files...
The JSON response will look like this. The actual file name is pre-pended with a random id to make the names unique. This is the actual file name under which the file is stored in the database:
{"filename":"cc30aa08-3d30-4236-a2fc-8c7a768d02c6.ABC.jpg", fileurl: 'https://api.appery.io/rest/1/db/files...'}