Xman,
At first, here is a way to get correct URL to your image stored in Files system collection by file name:
/[fileName]?sessionToken=[userSessionToken]&masterKey=[masterKey]]https://api.appery.io/rest/1/db/files...
Note: you need to replace [databaseID] with your data base id.
and [fileName] with your fileName.
Here is an example of correct link(you can try use it in browser):
https://api.appery.io/rest/1/db/files...
Where :
52fd3d06e4b0a25c11c89917 - db id.
d0381733-4e1f-41ba-8a05-b75202988d79.customPart_201.jpeg - file name.
Take a look on this screen shot what is "fileName" here - http://i.imgur.com/DwdSmzi.png
Here is link where you can read more about "Files" system collection. http://devcenter.appery.io/documentat...
And here is what you doing wrong:
1 you've invented some not clear for us solution how to implement it. In this case we can only answer your direct questions.
2 now you ask us about why your, not clear for us solution, not work.
Currently we don't know how to store your images - thus that's your own solution and you should know it.
If i understand you correctly(cause of you did not provide us detailed use case with print screens as i asked in prev message) here is a correct solution:
1 Create collection "user_image". With fields (user(link to user) and fileName(string)).
2 On success event for "upload" service you need to create new item in "user_image" collection with current user and fileName you have received from the "upload" service.
3 When you need to get all images you just make "query" request to the "user_image" collection with filter by current user "_id". This request will return all items for current user where you can get all fileNames and with this data populate all images(on page you need).
That's all.
Regards.