Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • boxchilli Friend
    #910020

    We have a large amount of PDFs (the main reason we’re using this) however from the S3 images we’re able to upload PDFs but not able to see them from the media view. Is there anyway to resolve this?

    Luna Garden Moderator
    #910490

    Hi,

    What did you mean by "see them from the media view"? The media view thing, could you show me the link for example.

    And also, I got this error: Cannot open file for writing log when I tried to login to backend of your site, so I couldn’t check anything.

    Please check if the back-end login you provided is correct, then I could help you further.

    boxchilli Friend
    #910532

    Hi.

    Just tested the user and logged in fine with it, please try again.
    I’ve attached what I’m seeing as missing PDF files (the path is _AboutUs/OfficeLocations)


    1. PDF-missing-
    Luna Garden Moderator
    #910950

    Hi,

    S3 button supports image file only, so that’s why you can’t see the PDF files.

    boxchilli Friend
    #911129

    Hi,

    So how can I link my PDFs from S3?

    Luna Garden Moderator
    #912112

    Hi,

    I’ve passed this to developer of this extension. Please check the update news via our blog post.

    boxchilli Friend
    #912256

    I can’t see anything new in the Update News section of the blog.

    Mo0nlight Moderator
    #913694

    Hi boxchilli,

    You can try with this tweak:

    • Go to the file /administrator/components/com_jaamazons3/models/repolist.php

    • Look for:
    case 'jpeg':

    And add this line above

    case 'pdf':
    • Edit the file : /administrator/components/com_jaamazons3/assets/repo_manager/popup-imagemanager.js

    Find this line of code:

    var tag = "<img src=\""+url+"\" "+extra+"/>";

    Change to

    if (url.search(/pdf$/gi) === -1) {
                    // image
                    var tag = "<img src=\""+url+"\" "+extra+"/>";
                } else {
                    // pdf
                    var tag = url;
                }

    This will insert s3 url of pdf file to text editor. And then you can add more html tag using text editor.

    Regards

    boxchilli Friend
    #915592

    Thanks Moonlight,

    It’s helped towards getting the PDF link.

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 8 replies, has 3 voices, and was last updated by  boxchilli 7 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum