Let visitors download a file directly without displaying it
-
Can I let visitors download a file when clicking on a link in stead of just displaying the file?
I tried the ‘download’ attribute to the ‘a’ HTML tag, but it looks like that’s not supported. Is there another way?The blog I need help with is: (visible only to logged in users)
-
Can I let visitors download a file when clicking on a link in stead of just displaying the file?
Of course:
Note: The following processes are outlined particularly for users who wish to upload a document and add its download link to a blog post or page.
-
That links to the file, not to downloading it.
What I’m trying to do is making a ‘save as’ window open as soon as the visitor clicks on the link.
-
-
-
-
For users using Chrome the PDF will open. For other browsers, unless they have a PDF plugin installed, it should download.
HTML5 has an attribute you can add to links to force them to download, but I just tested it and it does not seem to be supported on WordPress.com yet. I suggest you just add an instruction for your readers that they must right-click the link and then select “Save target/link as”
-
Ah, I see – I’m using chrome. Yeah, I noticed that the ‘download’ attribute isn’t supported, which I wrote in my post.
- The topic ‘Let visitors download a file directly without displaying it’ is closed to new replies.