• Resolved Novo

    (@novoaltum)


    Hi, I’m using FileAway version 3.9.6.1

    I’m unable to get jpg, png, and gif files to open in a new window. The image files open at the very bottom of my page. PDFs do however open in a new window.

    This is the setting I’ve put in the “New Window” field: .pdf, .jpg, .png, .jpeg, .gif

    This is my shortcode: [fileaframe source=”/files/” name=”files”]

    When hovering over the image item in the file list, the link displayed at the bottom of the browser is: javascript:

    When I inspect element, this is what I see:
    <span class=”ssfa-filename”>AsiaFresh</span>

    If I directly copy this link from inspect element and paste into the browser, the image shows. However, if I right click the file name from the FileAway list, open in new tab, nothing appears and the Title tag is: about:blank

    It doesn’t make sense to me why it’s opening PDFs in a new tab, but not the other file types.

    Your help is appreciated.

    https://wordpress.org/plugins/file-away/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author thomstark

    (@thomstark)

    javascript: means you probably have stats or encryption enabled, which means opening in a new window is disabled, but that wouldn’t explain why pdfs are opening in a new window. Do you have flightbox enabled for images and not for pdfs? Start by showing me your [fileaway] shortcode, rather than your [fileaframe] shortcode.

    Thread Starter Novo

    (@novoaltum)

    Hi there thanks for the quick response.

    This is the FileAway code I have on the page using the File Away iFrame template:

    [file_away type=”table” height=”800″ search=”yes” bulkdownload=”on” excludedirs=”Project Templates, Talent Templates” drawerlabel=”Directory/File Name” size=”no” drawericon=”console” mod=”no”]

    Cheers

    Plugin Author thomstark

    (@thomstark)

    It should be [fileaway rather than [file_away

    But that’s obviously not the issue. Check your File Away Settings page and see if Statistics are enabled. If so, disable them and see if that resolves your issue.

    Thread Starter Novo

    (@novoaltum)

    I looked into why it said file_away instead of fileaway – the Unyson code builder that I’m using (built in with the Woffice Intranet Theme) for some reason builds your fileaway code using file_away and adds their own shortcode base on what is entered in their tool.

    When I hand coded the shortcode myself, it worked!

    Thanks for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘JPG, PNG, GIF not opening in new window’ is closed to new replies.