Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

How to map an uploaded image from the "File" database to an image asset in the app?

Hi,
I'm struggling to get an already uploaded image stored in the File collection of Apperyio mapped to the asset property of an image in my app.

What value of the image in the database must be attached to the asset of the image?

My update service does not come with filename and fileurl as response variables.

Image

Image

Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

How to map an uploaded image from the "File" database to an image asset in the app?

Thanks.
Do I have to store the uploaded image files in a custom collection before I can assign them to an asset property of an image in the GUI?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How to map an uploaded image from the "File" database to an image asset in the app?

Hello Bernie,

You can keep them in a common File colletion

Bernie
Posts: 0
Joined: Fri Jul 27, 2012 2:06 pm

How to map an uploaded image from the "File" database to an image asset in the app?

Ok. As a first step I am trying to get the filename and the fileurl of an uploaded file.

Therefore I upload the file with an upload service and try to fetch the filename by assigning it to a local storage variable (see screenshots below).

But when I try to read that local storage variable with alert(localStorage.getItem("varDealPicture"));
I do get a "null" as a result.

Any ideas?

Image

Image

Image

Return to “Issues”