Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6094999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:45:52+00:00 2026-05-23T12:45:52+00:00

How can I link a pdf file on my web site only downloadable, and

  • 0

How can I link a pdf file on my web site only downloadable, and not display this PDF in the browser?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:45:52+00:00Added an answer on May 23, 2026 at 12:45 pm

    The behavior of what to do with the content of an HTTP response is ultimately determined by the browser, not by the server. However, you can “suggest” to the browser that the content of the response is meant to be a “file” and suggest a name by which to save that file by using the content-disposition header.

    Note that the HTTP protocol doesn’t really transfer “files” in the sense in which most people infer. It transfers content with associated headers. So everything you do is done through those headers which accompany the content.

    Edit: I just noticed your tags… Are you talking about serving the file for download or about linking to a file served elsewhere? If the latter then I’m pretty sure it’s out of your control. Your JavaScript can maybe control the content of the request header, but the response header is entirely up to the server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can i send a pdf file through javascript ? i have a link ,when
I am giving link of a pdf file on my web page for download,
is it possible to redirect a link to a pdf file? This is my
I've got a controller action that returns a FileResult like this return this.File(file.pdf, application/pdf);
I want to make a link in a PDF file that when clicked on
I need to give a download link to a pdf file which is in
I am developing an web application which can upload/download a file from client to
It is not uncommon for our intranet web applications to link to publications, documents,
I am trying to create a PDF file of current view. Can anyone please
I am using the following link inside a WebView to show a pdf file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.