Previous Thread
Next Thread
Print Thread
Hop To
#263230 10/09/2019 1:33 AM
Joined: Aug 2006
Posts: 96
Likes: 1
G
Journeyman
Journeyman
G Offline
Joined: Aug 2006
Posts: 96
Likes: 1
I am not sure what the issue may be for the Show PDF feature for attached PDF files. When you click on it, it gives message “No Preview Available.” When you click on the icon with arrow point out of a box, it takes you to Google doc which also says, “No preview available”. Any idea which what I am doing wrong?
Attachments
5866373E-39DF-49F5-8743-C68EFDBBED96.png EA2EAAE9-E0B2-43B5-AC71-098F51F080A1.png


I am a Superstar! Testing signature here
Geoff #263231 10/09/2019 8:26 AM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Could it be a broken PDF? one that was not completely uploaded/attached?
Do you have a browser extension blocking the third-party domain communication?
Attachments
Attached PDF document
ALLIGATOR CRAFT.pdf (408.08 KB, 27 downloads)


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Geoff #263232 10/09/2019 5:02 PM
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
The odd part is the download links work but not the preview.
Could it be that pdf is not a allowed attachment file?
Even though it is saved.

Or could it be it was originally saved in google docs. And uploaded from there.

Last edited by Ruben; 10/09/2019 5:05 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Geoff #263233 10/09/2019 5:11 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
This is the error displayed when attempting to attach a file that is not configured within the "Allowed Attachment File Extensions" setting -

an *.swf (ShockWave/Flash) file, for example -
[Linked Image]



Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Geoff #263234 10/09/2019 5:12 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Attached are the first 6 pages from a book. There is a password on the pdf. That password is, "abc123"
Attachments
Attached PDF document


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Geoff #263235 10/09/2019 5:15 PM
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
I understand.that
Just thought there may be a hole for a pdf or if it is a google doc file.
That is the only thing I came up with thinking out of the box.
What is weird is the download link works just not the preview.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Geoff #263236 10/09/2019 5:17 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Attached is a regular text file with the content being only, "hello world"
The file extension was changed from "txt" to "pdf"

Attachments
Attached PDF document
New Text Document.pdf (11 Bytes, 31 downloads)


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Ruben #263237 10/09/2019 5:19 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Originally Posted by Ruben
What is weird is the download link works just not the preview.

Do you have a link to the page with the attachment, so I can inspect it?

thanks

Last edited by isaac; 10/09/2019 5:19 PM.

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Geoff #263238 10/09/2019 5:38 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
After a bit of searching through your forums, I was able to find this post.
https://firstgenfirebird.org/forums/ubbthreads.php?ubb=showflat&Number=324127

I assume this is the post you were having issues with?

Im able to view the PDF inline just fine.

My browser's user-agent string is
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

[Linked Image]


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Geoff #263239 10/09/2019 6:21 PM
Joined: Aug 2006
Posts: 96
Likes: 1
G
Journeyman
Journeyman
G Offline
Joined: Aug 2006
Posts: 96
Likes: 1
I had a chance to look at it today. Your post gave me an idea what this issue might be. I use a WordPress plugin for security and part of it I have set up to block hotlinking.

# CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/REDIRECT CODE - Your Custom htaccess code will be created here with AutoMagic

# BLOCK HOTLINKING TO IMAGES
SetEnvIfNoCase Referer "^(http|https)://.*\.firstgenfirebird\.org$" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*firstgenfirebird.*" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*oakmediacreations.*" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*firstgenerationfirebird.*" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*\.google\.com$" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*\.yahoo\.com$" whitelist
SetEnvIfNoCase Referer "^(http|https)://.*\.bing\.com$" whitelist

<FilesMatch "\.(gif|jpg|jpeg|png|bmp|pdf)$">
Order Allow,Deny
Allow from env=whitelist
# Add Your Server IP Address
Allow from xxx.xxx.xxx.xxx
</FilesMatch>

I removed the pdf part and it resolved this issue.

Thank you - Geoff


I am a Superstar! Testing signature here
Geoff #263240 10/10/2019 10:10 AM
Joined: Aug 2006
Posts: 96
Likes: 1
G
Journeyman
Journeyman
G Offline
Joined: Aug 2006
Posts: 96
Likes: 1
Thank you for your help and apologize for my delay in testing what you suggested at first as I wasted your valuable time. Geoff

https://forum.ait-pro.com/forums/to...-google-bing-or-yahoo/page/6/#post-38005


I am a Superstar! Testing signature here
Geoff #263241 10/10/2019 10:55 AM
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
No Thank you Geoff.
All to often people post a problem, they get responses but the original poster never replies if it was resolved or not and what they did to resolve the issue.

This post helps every one.
Even if not a UBB issue it was a issue that future users will find helpful.
Including the programmers.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Geoff #263453 02/03/2020 11:07 PM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
I am having this issue also. I'm not savvy about code like you guys. Is there a fix that I can do and can you tell it to me in plain English smile . If not can you tell it to me so I can pass it on to my server guy.

Thank you

Larry Miller #263454 02/03/2020 11:17 PM
Joined: Apr 2004
Posts: 1,945
Likes: 145
UBB.threads Developer
UBB.threads Developer
Joined: Apr 2004
Posts: 1,945
Likes: 145
Originally Posted by Larry Miller
I am having this issue also.

do you have a link to this issue in your website? also, http or https?

can you view or download the attached pdf from earlier in this thread?

is your browser updated? chrome will not display PDF or flash or other add-ons if you are using an outdated version of chrome -- restart your browser.

what browser add-ons are you using? are they blocking Google servers or third-party servers... such as Google's?

does this happen when you try viewing on a different browser?

these are the first steps in debugging your issue.

EDIT: Have you tried the .httaccess steps as previously discussed in this thread?

Last edited by isaac; 02/03/2020 11:26 PM.

Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
isaac #263455 02/04/2020 12:28 AM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
I just saw this...I'm off to sleep as I'm on the East Coast...thank you this reply..so far, it is happening in Chrome and Safari...I will post an additional reply with fresh eyes in the morning. Again, thank you for your reply


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
1 members (Havenofsobriety), 522 guests, and 99 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)