Connect upload button to your collection

You asked and we listened! We’re excited to let you know that you can now connect the upload button without code ! You use the Connect to Data button to connect it to your dataset and a field in your collection, just like other elements in Wix Code. You can use it to upload images directly into your collection. And coming soon, you’ll be able to upload documents, too. We’ll keep you posted!

4 Likes

Well done.

Out of interest, how often will the beta get new features? I’m interested in the repeating elements layout that’s on your roadmap in particular.

Yes it is!. We are currently working on repeating elements layout and many more surprises.

Yay! and I agree with the repeating elements idea!

Me too, can’t wait :slight_smile:

I’ve just got here into this forum, after asking in the regular help center:

"I’ve managed to upload an image to my database with the “upload file button”.
How can users upload text files ( from WORD, or a PDF)?
There is an option to pick “document” on the button setting but then I can’t connect it to the database unless the field is set for “image”.
So, how do I upload a document?"

So, after reading this I just want to make sure -
At this stage I can only upload images without code, but not documents , right?
BTW - I could not find the image in my uploads - it is just in the database table…
so there is still the question of how I download it.

Thank you so much
I’ll keep following
Tamara

Hi Tamara,

Great having you here.

You are right, at this point you can only upload images without coding to the database. You can upload documents, and get to them, but you cannot enter the reference to the document to the DB without code.

Having said that, we are working on adding the support for no coding document upload to the DB.

As for where you can see uploaded images and documents, in the upload button settings there is a button on the top - I think it is called uploaded images / documents (or something very). Using this button you get access to any uploaded file, regardless of the database.

Thank you, Yoav!
Yes, I’ve tried this button but the folder was empty though I can see the image in the DB.
But, I’ll try it all from the beginning…that’s how you learn , isn’t it? :wink:

it is not working from today for my site…please help (date sep 14)

Today when I click the connect to dataset icon nothing happens

Question about the file upload button.
When I have clicked the button and choosen an image how can I update an image element on the page so the user can see which image they just uploaded?

About Andreas Kviby comments… it is also a problem for me…Is there a way to have the updated image refresh on the page as soon the user insert a new image ? I did not found a way yet. Yes the image is push into the database once submit but the user cannot see the picture refresh on the page

I am also trying to do this. The image pushed to the collection fie but it would be nice to get the image to refresh so the user can see the new image.

Hello,

  1. I created a collection, import all my products to the collection via CSV,
  2. Add a gallery to a page
  3. Connected the dataset to my collection4. Connected the Gallery to dataset
    But I am unable to add a “Sort” option above the Gallery.
    All I need is to connect two buttons “Price Low | High” to the Gallery.

I would really like to add Sort button so my customers would be able to click on to sort the list.
I did receive the cod

e but when I added it to the end of the page it is not working for some reason. I clicked on the Gallery Clicked on onCurrentitemChanged on the properties panel Pasted the whole script after the the lat }

mport wixData from ‘wix-data’;
$w.onReady( function() {
$w(“#button227”).onClick( (event, $w) => {
$w(“#dresses1”).setSort( wixData.sort()
.descending("pric

e");
} );
$w(“#button228”).onClick( (event, $w) => {
$w(“#dresses1”).setSort( wixData.sort()
.ascending(“price”);
} );
} );

This is the page I am working on. https://deli236.wixsite.com/sweetsmilecopy/dresses


Can you please have have a look at this.
Many thanks

I can’t find a way through code to set which “item” the uploaded file goes into. Using a coded upload button simply overwrites the current item entry.