Hi i would like to code an upload button where if the user uploaded something, a second button will be shown (since wix does not allow multiple uploads in a single upload button, which is very very not useful to have this -.-)
I am guessing it will include an if else condition which will be in a loop, but can anyone point me in the right direction on how to generate a new upload button in corvid please
thanks for your response. I am adding the upload button to my form. How can I link this button + code in the form’s database? As it is not showing up
If you are using the code from the previous forum posts, then it is through the upload button itself.
https://support.wix.com/en/article/adding-and-setting-up-an-upload-button#step-2-connecting-your-upload-button
The upload button itself is where the picture urls are stored.
https://www.wix.com/corvid/reference/$w.UploadButton.html
https://www.wix.com/corvid/reference/$w.UploadButton.html#UploadedFile
You need to add a submit button to your page to save user data to your collection.
Finally, let’s return to the Editor and find the uploaded file. Select the upload button and click Manage Upload Button . In the Upload Button Settings panel, click Go to File , which opens the images that have been received by your site. There you should see the image you just uploaded.
https://support.wix.com/en/article/wix-code-using-the-upload-button-with-code
So as it says on one of those previous forum posts, that they then just simply insert that into the dataset themselves - ‘once this is done is easy to insert to the database the variable “workImages” which contains all the images.’
If you are using this code example.
https://jonatandor35.wixsite.com/test/multiupload
Then it uses the Save Button with Wix Data Bulk Save to add them to your dataset as shown in the code
wixData.bulkInsert("Pictures", toSave)
wix-data - Velo API Reference - Wix.com
I visited this website https://jonatandor35.wixsite.com/test/multiupload
and it was of great help but can you explain me how to store that multiple images in database?
Store it and use it to display on the site making it user generated