wix-static documents

Hello everyone!

Is there any way to get the address of uploading documents or images to the database table?

So you can send the link via sendGrid …

Tks!

Att;

Hey

I just copied from another post in the forum and as you can see they console.log(uploadedFile.url) and that is the url the file / document got so use that.

$w("#uploadButton1").startUpload() 
.then( (uploadedFile) => {
console.log("Upload successful. File is available here:");
console.log(uploadedFile.url);
$w("#dataset1").setFieldValue("image1", uploadedFile.url);
$w("#dataset1").save()
.then( (item) => {
console.log("Save successful");
let fieldValue = item.item1;
} )

Andreas,

Thanks for the attention, could help me a little more. Could you check, if possible, the code below and where can I integrate it with your code?