vveil
vveil
SSolidJS
Created by vveil on 1/29/2024 in #support
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:
<A
href="documents/file.pdf"
download="file.pdf"
class="primary-button flex-1 text-center"
>
Download
</A>
<A
href="documents/file.pdf"
download="file.pdf"
class="primary-button flex-1 text-center"
>
Download
</A>
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
SSolidJS
Created by vveil on 12/25/2023 in #support
[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