filedownloading is making the file to view instead of download in drupal7 Hi i have followed Working with files in Drupal 7 and created the content type for file download.Everything is working fine i can upload a file and displaying it in the front page.But when i click on particular file for downloading it is just viewing the file in another tab in the browser with url like this

drupal7.22/sites/default/files/file.txt

I can view the file but not able to download it.Can you just say me where i did the mistake.
Read Force Files to Download Instead of Showing Up in the Browser as the page suggests you can achieve this by adding these lines to  .htaccess file 

&lt;FilesMatch "\.(?i:doc|odf|pdf|rtf|txt)$"&gt;
  Header set Content-Disposition attachment
&lt;/FilesMatch&gt;


Or alter mime type