Where to place the files that can be downloaded by the user

Sunday, May 4, 2014

I was working on a project and came across a problem


I wanted to give the user a file to download so I wrote this anchor tag



<a href="http://ift.tt/1iXn3pK">Download here</a>


the problem is when i click on this link the browser is showing a 404 error


I would have thought my mechanism was wrong except that when I link it to a html file(present in the same directory) it is working fine.



<a href="http://ift.tt/1id2mkM">Download here</a>


This seems to be working fine


Is the link not working because the browser cannot handle the excel file and can handle html files? If yes, how can i resolve the issue?







http://ift.tt/1iXn3pM