I’m having trouble using the wixData.get() function to download a document from my site’s database. Has anyone else used the function this way?
This is my code:
import wixData from ‘wix-data’;
export function downloadGuidelines_click(event, $w) {
wixData.get(“guidelines-documents”, “1”);
}
I used it a few weeks ago and it successfully downloaded the file in the first line of my database. Now it does not work.
Suggestions for other ways to download files stored on the site would also be appreciated
Thanks!