File download

Discussion in 'ASP' started by vikas, Jun 27, 2007.

  1. vikas

    vikas New Member

    Joined:
    May 31, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Allahabad (U.P)
    I have a link to text file which is on my server. When the user clicks on the link the textfile simply displays in a new window.
    What i want to happen is that the file is able to be downloaded to the users machine.

    How do i set this up?
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Add a content-disposition headaer, using .htaccess if you are using Apache server!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice