ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Links to downloadable content

November 12, 2010 5:49pm

Subscribe [3]
  • #1 / Nov 12, 2010 5:49pm

    jcberry

    5 posts

    I have an href for a user to download/view a pdf file, yet when it is clicked on EE treats it like a URL. Is there a setting or tag that I need to use to let the browser treat this as it normally would?

    Thank you!

  • #2 / Nov 12, 2010 8:32pm

    box-head

    177 posts

    What are you expecting to happen when a user clicks the download link?
    What sort of URL is being created?

  • #3 / Nov 12, 2010 9:01pm

    jcberry

    5 posts

    My browser is currently set up to open a pdf file with the Reader plugin when I click on a link to a PDF file. EE seems to override this and interprets the filename as a segment rather than let the browser download the file. I end up looking at a broken webpage.

    I am wondering if I am going to need to use a PHP download wrapper?

    Thank you,
    Jim

  • #4 / Nov 12, 2010 9:05pm

    jcberry

    5 posts

    Was just thinking. Is this directory perhaps in some sort of global EE redirect? I believe the image directory is not so there can be direct external links. Is there someplace to change this setting (if this is indeed the issue)?

    Thanks again.

  • #5 / Nov 12, 2010 10:02pm

    jcberry

    5 posts

    Problem solved. I did not know that they had changed the .htaccess file to remove index.php from the URL, which was causing this issue until the new directory was added to the list.

  • #6 / Nov 14, 2010 1:14pm

    Greg Salt

    3988 posts

    Hi jcberry,

    Glad that you got this resolved. Please post back if you have further questions or problems.

    Cheers

    Greg

    @box-head, thanks for helping out.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases