Hi Corvid Coders 
I was trying to make dynamic download buttons on a dynamic page but didn’t know how.
And I’m not talking about their src value, but I need them too anyway.
let itemObj = $w('#dataset').getCurrentItem;
let itemImg = itemObj["productImage"];
$w('#image').src = itemImg;
let itemVid = itemObj["productVideo"];
$w('#video').src = itemVid;
let itemZip = itemObj["zipFile"]; // << First problem
$w('#button').link = itemZip;
$w('#vector').link = itemZip;
The first problem is that I need the external file location (https://…zip), not:
How can I get the external (download) links for the images, videos and files to let them downloadable on dynamic pages?
Answeres are much appreciated.
Thanks 
For your first problem, if you are using external file locations then the url will be where ever your external file is stored which is not on Wix servers
However, if you have uploaded a file to the Wix Media Manager, then it is given a new file name and so you will get the additional parts.
https://support.wix.com/en/article/request-customizing-document-file-names
When you upload a file to your Wix site, it is automatically assigned a name by our servers. Currently, it is not possible to customize the name of the file or to show the original name to your visitors when it’s downloaded.
https://www.wix.com/corvid/reference/$w.Image.html
Image
Images are images stored in the Media Manager or retrieved from an external web location.
The URL formats for images are:
https://www.wix.com/corvid/reference/wix-media-backend.html
You can use Wix Fileshare app if you have multiple downloads for site members.
https://support.wix.com/en/apps-made-by-wix/file-share
You can download files simply by using a button linked to the file itself.
https://support.wix.com/en/article/adding-a-download-button
https://support.wix.com/en/article/adding-a-document-button
You can also see previous forum posts about it too.
https://www.wix.com/corvid/forum/corvid-tips-and-updates/create-a-download-button-for-uploaded-documents
https://www.wix.com/corvid/forum/community-discussion/download-document-on-button-click
Or, if you want to hide parts of it, then see Nayeli (Code Queen) example here.
Trigger Auto Download for Image on Wix while hiding wixstatic.com
https://codequeen.wixsite.com/auto-download
Hi @givemeawhisky , Thank you for your answer.
I was trying to get the download link of fields in my database, (Image, Video, Document), not an external link.
But they’re not downloading, only opening in a new tab, while the document file (ZIP) is displaying an error message on the new tab " Forbidden ".
The URL of that window is ( https:// … .filesusr.com/ugd/ … zip?dn={documentName }
All of this is just usning a button that’s connected to a dataset (without code), that’s why I’m asking about how to achieve this.
The file share application (while it’s a great app), but it’s not the ideal solution, I’m building a refunds/returns app for Wix Stores , therefore, the members are expected to upload their own media (proofs of their claims) using the refunds/returns app that I’ve created, and the download option is for legal purposes in case of customers objects on why their refund/return request was rejected, and for their reference, too.
The video that you mentioned is too ald, she clearely stated in her video that Corvid API has changed a lot since then, and that’s true. Also, I’d like to understand the code, not just copy and paste it, which is not the case in the video.
If you run a simple query on data collection, the image url would look like:
wix:image://v1/13082a_f6c13cd2fe60ac3a03fc8b887b00~mv2.jpg/potrait%20image.jfif#originWidth=275&originHeight=183
But to see the image in a new browser, you only need the image url like this:
https://static.wixstatic.com/media/13082a_f6c13cd2fe60ac3a03fc8b887b00~mv2.jpg
So simple string processing should get you the result:
image = image.replace(“wix:image://v1/”, “https://static.wixstatic.com/media/”)
image = image.replace(/~mv2.jpg/./, “~mv2.jpg”)
image = image.replace(/~mv2.png/./, “~mv2.png”)
image = image.replace(/~mv2.tiff/./, “~mv2.tiff”)
image = image.replace(/~mv2.webp/./, “~mv2.webp”)
// You can also replace other formats if you want