vveil
Download file from public/documents
Hi,
I want to have an A-Element, that starts a download for a .pdf-file I placed in public/documents.
Currently it looks something like this:
When clicking on this element a download with the correct filename starts, but I can't open the file because it seems to be corrupted or damaged. I tried this with different PDFs. Opening the in public/documents directly on my machine works without problems.
Can anybody tell me where I went wrong?
1 replies
[macOS] Module '"@solidjs/router"' has no exported member 'cache'.
I wanted to follow the example for caching from https://start.solidjs.com/core-concepts/data-loading, but when trying to import the cache function I get the error in the title.
I created my project with
npm init solid@latest
Has anybody any idea what I can do?13 replies