Hi everyone,
I have a rather strange problem and I ask for your help.
I have a file upload form, I select a sample PDF and upload it to a site directory.
If I try to open the file in the destination directory there are no problems, but after downloading the document is corrupted.
It happens with any type of document or image uploaded.
Could your browser be caching a previous document that was corrupted? Have you tried uploading another completely different PDF? Have you tried another document format e.g. DOCX or TXT or RTF (whichever is easiest for you).
Yes, all these tests have already been done, and the document in the remote folder opens, so it cannot be the damaged one.
it’s a really weird thing
I believe your download attribute is wrongly setup. Remove the dynamic download attribute from the anchor tag and just add download
to your anchor tag.
1 Like
Hi Teodor, I think I don’t understand what you mean…
This here looks wrong:
Remove it from there. Instead add a download
attribute to the <a>
tag you are using like this:
<a dmx-bind:href="..." download>My link</a>
Thanks, work fine now!!