How to restrict user to download the files

I am trying to upload files for the user to view it but once it is uploaded using the file element it is giving the option to download.We want to restrict the user to download the file instead of download they can see the file in the website itself.How can we achieve this in word press.