Upload image button to product image

Hi,
I can’t succeed to upload image with the upload image button and add it to product image

All the images uploaded to folder “visitor uploads” and all the images that folder not have URL and without the option of copy URL
The copy URL is their but its not working.

Someone knows how to do it?

1 Like

Hey!

Not sure I am following, what do you mean by folder? If it is about Wix Forms file upload , then you will need to contact Wix Customer Care as they know best.
https://support.wix.com/en/article/contacting-wix-customer-care-for-support

In regards to your question about the URL of the image uploaded, I feel like we also require some further clarification regarding the matter.

If you are referring to a default Products Collection, it has Read-Only permissions so you can’t really upload anything to it via code.
https://support.wix.com/en/article/corvid-wix-stores-products-collection-fields

Please elaborate on the issue you are encountering and explain the exact actions you are trying to perform. Also check out the links below as they can help you start:
https://www.wix.com/corvid/reference/wix-media-backend.mediaManager.html#getFileUrl
https://www.wix.com/corvid/reference/$w.Image.html

Hi, thanks for answering.
when you upload image with the upload button the images is automatically upload to folder in the media manager named: Visitor Uploads

all images in that folder dont have external URL

and i cant use it in the wix-stores-backend => addProductMedia()

  • addProductMedia() Need external URL
    thanks

i have same problem, how can i solve?

I want user upload a photo then i connect cms dataset to galery viewer. I want to see user uploaded photo will be seen in galery but uploaded photos are in only visitor uploads file. I want “user can see in galery in a few seconds” time is not important.

That’s definitely frustrating. The issue may stem from the “Visitor Uploads” folder not providing accessible external URLs, so the addProductMedia() function can’t use those images. It might help to upload the image separately to your Media Manager (where you can get a proper URL), then use that link with addProductMedia() to attach the image to your product.