I am using Document Manager in Telerik RadEditor.
Once I upload .txt file and click on that link, it opens on the browser instead of downloading it. How to force download that file without going in to .htaccess or other server changes?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Short answer is: using RadEditor alone you can’t.
In order to make a browser-viewable file type be served as a download you must send it to the client’s browser with a ‘Content-Disposition’ type of ‘attachment’. Doing so is fairly simple, however it requires server-side code that would be outside of the scope of RadEditor.
Unless you want to write a specific handler for serving the file in question, your only option is to instruct users that they must ‘Right-Click > Save Link As…’ on your text file link.