Problem displaying images

Hi all,

I have a user form where the user can upload his profile pic. This part works fine, since the upload button is directly connected to the DataSet and the image uploads to the Collection.

Problems arise when the user returns to his profile page. I have an Image object which is directly connected to the corresponding field in the DataSet and it shows the user’s image. At this point, the user clicks on the CHANGE PROFILE PIC button to select a new image.

I have two questions:

  1. How do I immediately update the picture in the Image object so that it immediately shows the new profile picture?

  2. What image info do I programmatically pass to the DataSet once the user presses the SAVE DATA button?

Hey,

Firstly, I recommend checking out the article of " How to Use the Upload Button with Code ":

Moreover, I recommend the following steps:

  1. Add a submit changes button and create an onClick event.
  2. Set the field value with the new image URL .
  3. Save the changes.
  4. Refresh the dataset.

Should the issue persists, please send us a video of the issue using screencast so that we can better understand. Moreover, please send us the site URL.

Have a good day,
Tal.

Hi Tal and thanks for your reply. Unfortunately, the example doesn’t show me how to immediately display the chosen image BEFORE uploading it.

Moreover, upon saving the user’s updated info, I can’t set the image’s field value to the new image, since I can’t load the image in the Image object until AFTER I’ve saved the data. It’s a vicious circle!

hey good day am having issues in my site viewing images from mobile phones

an its not only my site many sites that was built on wix has this similar probe

pls you guys should do something

not working for me as well.

All my images are now showing as file names only. I have tried different browsers and devices along with all the steps recommended by wix. The site was previously working normally until this was pointed out to me by a potentialcustomer a few days ago