Link Details

Link 967557 thumbnail
User 1102769 avatar

By nevil120
Submitted: May 13 2013 / 11:12

I was trying to implement Download link in my application. Simply I was giving link of my file in anchor tag and trying to download. But instead of downloading that file from server to my local system , It was opening the file in browser itself. I tried for image, .txt file but I was not able to download.Check out screenshots. If browser is capable of opening files then it might open it instead of downloading if you simply provide link of file. You have explicitly write script to download file forcefully instead of opening it.
  • 2
  • 0
  • 150
  • 65

Add your comment

Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Upvoters (2)

Downvoters (0)

    Apache Hadoop
    Written by: Piotr Krewski
    Featured Refcardz: Top Refcardz:
    1. Play
    2. Akka
    3. Design Patterns
    4. OO JS
    5. Cont. Delivery
    1. Play
    2. Java Performance
    3. Akka
    4. REST
    5. Java