• Resolved Manikandan

    (@myselfmani)


    Hi,

    Thank you very much for this wonderful plugin.

    How to open the file directly instead of saving.

    I have done it by editing the below line. But I want to know if there is any options without editing the plugin directly.

    Template name : DownloadHandler.php
    from
    $headers[‘Content-Disposition’] = “attachment; filename=\”{$file_name}\”;”;

    to
    $headers[‘Content-Disposition’] = “inline; filename=\”{$file_name}\”;”;

    Please help

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for reaching out to us.

    Without editing the file, if you want to open the file in a browser instead of downloading it, you will need to first upload it to the general WordPress uploads folder using “Media” menu and then after adding the URL to our plugin, set the “Redirect to File” option.

    I hope that answers your query. Let us know if you have any further questions.

    Thread Starter Manikandan

    (@myselfmani)

    Hi,

    Thank you very much for the immediate reply. It is working correctly. Solved my problem.

    another clarification connected with the same thread.

    Is there any way to protect this files from search engines if we upload directly under media. ?

    Please help.

    Hello,

    I’m glad to assist.

    I regret to say when using redirect method, the files cannot be protected.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to open the file directly instead of saving on the disk’ is closed to new replies.