Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

image guidance

Hello

Code: Select all

How can I show a profile picture for each individual user?  

I can upload the photos to the database but I dont know how to map the photo to the users profile so ALL users can see the profile picture of the other users.

I dont see a way to link the photo I upload to the database to the users profile. The unique file name does not help because it is an unknown variable in the app and the regular file name does not help because multiple files can have the same file name and finally the Owner field does not help because the user can have multiple profiles with different pictures.

What am i missing?

Thank you

Galyna Abramovych
Site Admin
Posts: 84
Joined: Tue Mar 22, 2016 6:03 pm

image guidance

Hello Vinny,

Please, make sure you follow these steps:

  1. After you've created the DB with your users profiles collection and added a "photo" column in collection with type "string".
    2.Then, create a new DB service (CREATE NEW Database Services) checking update service.
    5 Add this "update" service to the page.
    6 After you will get service with "photo" request parameter.

  2. Navigate to "edit mapping".

  3. To restore photos into image component - just map it from "photo" response parameter to "asset" attribute of image component.

    Also, this forum topic can be of help: https://getsatisfaction.com/apperyio/...

Return to “Issues”