-
AuthorPosts
-
April 6, 2016 at 8:44 am #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 ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
April 7, 2016 at 8:34 am #910490Hi,
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.
April 7, 2016 at 9:24 am #910532Hi.
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)
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
April 8, 2016 at 2:25 am #910950April 8, 2016 at 8:03 am #911129Hi,
So how can I link my PDFs from S3?
Luna Garden ModeratorLuna Garden
- Join date:
- July 2011
- Posts:
- 2617
- Downloads:
- 80
- Uploads:
- 96
- Thanks:
- 78
- Thanked:
- 453 times in 425 posts
April 11, 2016 at 3:48 am #912112April 11, 2016 at 8:17 am #912256I can’t see anything new in the Update News section of the blog.
Mo0nlight ModeratorMo0nlight
- Join date:
- September 2014
- Posts:
- 707
- Downloads:
- 38
- Uploads:
- 107
- Thanked:
- 99 times in 97 posts
April 12, 2016 at 9:36 am #913694Hi 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
April 12, 2016 at 12:14 pm #915592Thanks Moonlight,
It’s helped towards getting the PDF link.
AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 8 replies, has 3 voices, and was last updated by boxchilli 8 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Unable to view PDFs on S3 from the S3 images button
Viewing 9 posts - 1 through 9 (of 9 total)