I ran into a bit of a problem with uploading images using the rest API. I’m using appgyver for the front end, and the API is clearly working. The object ID is being generated, along with the creation date, and other data, but the file reference is not working. So I contacted appgyver support. There response:
I had a look and talked it over with some other team members, and the end result is that uploading the image as a file reference type into your database doesn’t work, and to make it work, you need to define images in your database to be an Object or List of Objects (this is annoying, I know). The properties you need to store are the storageKey and the download url of the file (other file fields can also be included). With these, you can always get a new, working url for the image.
Define images as a list of objects? How to do that using backendless?