jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: tineskok on 20.02.2015 02:43:08

Title: selecting download link don't download pdf, but opens pdf at text. - [Solved]
Post by: tineskok on 20.02.2015 02:43:08
I Use jDownloads Version 3.2.25 beta.
I have multiple PDF's in archive and i want offer them, to download them publicly as pdf files.

I generate category
- upload multiple pdf files directly to category folder using ftp
- in jDownloads: Downloads tab i see all the pdf's
- i'am using module as menu element type: http://www.obcestvo.si/arhiv
- and plugin: http://www.obcestvo.si/oznanila

In both cases there it is always the same problem:
by selecting download link, the browser don't download pdf, but opens pdf at text.
I tested link in Firefox, Chrome and Internet Explorer browsers.

(http://www.obcestvo.si/images/tmp/Screenshot2015-02-20%2000.35.08.png)


example:
the file name is:
obcestvo_2015-03.pdf
but download link is
http://www.obcestvo.si/arhiv/send/2-obcestvo-arhiv/61-obcestvo-2015-03

The same problem is when i install "the example data" from "jDownloads: Tools" menu.

Can somebody, please help me!
Tine Skok

[gelöscht durch Administrator]
Title: Re: problem: selecting download link don't download pdf, but opens pdf at text.
Post by: Arno on 20.02.2015 11:14:13
Hi Tine,
it seems that nobody else has a problem like this. So i think it is not a bug.
When i test it here, i can download pdf files without problem from my test websites.

It seems that in your case are sends wrong header data.
Compare the first (pdf download from your page) with the second pic (download from my test page).
The content type in the header is in your case text/html so it is viewed in the browser as text.

What for settings have you in this field? See last pic.

[gelöscht durch Administrator]
Title: Re: problem: selecting download link don't download pdf, but opens pdf at text.
Post by: Arno on 20.02.2015 12:32:25
Please try also to download a file directly like: http://www.obcestvo.si/jdownloads/ordner/filename.pdf
Title: Re: problem: selecting download link don't download pdf, but opens pdf at text.
Post by: tineskok on 20.02.2015 15:26:41
In Configuration/Downloads TAB I checked settings but there is no PDF file type to be opened in the Browser as you can see them on 1st pic.

If I set Send Downloads using the PHP Script to NO, download link opens this address: http://www.obcestvo.si/arhiv/send/2-obcestvo-arhiv/61-obcestvo-2015-03
and then after few seconds redirects to: http://domains/obcestvo.si/public_html/jdownloads/Obcestvo-arhiv/Obcestvo_2015-03.pdf which in invalid address.

I think that it is not server or Joomla issue, because other direct links are working fine, like http://www.obcestvo.si/images/obcestvo/Obcestvo.pdf which you can find on this page: http://www.obcestvo.si/oznanila if you select Zadnja ?tevilka Občestva link,  

I can't figure out, how to write direct link for files in www.obcestvo.si/jdownloads/ folder.

Direct links in /images/ (sub)folder are working OK, like
http://www.obcestvo.si/images/jdownloads/test1.pdf is working OK for files in www.obcestvo.si/images/jdownloads/ folder
while
http://www.obcestvo.si/jdownloads/test2.pdf returns error 404 for www.obcestvo.si/jdownloads/ folder
http://www.obcestvo.si/jdownloads/Obcestvo-arhiv/Obcestvo_2015-3.pdf returns error 404 where Obcestvo-arhiv in name of my Category

The 2nd pic shows settings in top of Configuration/Downloads TAB, where Upload directory path is /domains/obcestvo.si/public_html/jdownloads
Is this OK?
Ftp path is: ftp://ftp.obcestvo.si/domains/obcestvo.si/public_html/jdownloads/Obcestvo-arhiv/

Are there some settings for file or folder permissions or some other setings to be checked?
Status window seems OK (pic3)

Can you please help ???


[gelöscht durch Administrator]
Title: Re: problem: selecting download link don't download pdf, but opens pdf at text.
Post by: Arno on 20.02.2015 15:36:38
Okay. Thanks for the posted links and screenshots. So i could see this on the pic below:
QuoteObvestilo

Unauthorized access to downloads.
Error! Either you tried to start a download from an unauthorised resource or your browser did not send a referrer.
So you have only a problem with permission/access settings in jDownloads. This should not be a very big problem.  ;)
Which users should have the permissions to download this files?
Who may see it?


Edit: I have removed your pic above with the absolutely path from your server... not a good idea to publish it here.
Title: Re: problem: selecting download link don't download pdf, but opens pdf at text.
Post by: tineskok on 20.02.2015 15:43:53
It shuld be public. Anyone can see, download and open PDFs
Title: Re: problem: selecting download link don't download pdf, but opens pdf at text.
Post by: Arno on 20.02.2015 15:46:41
Okay. can you send me login data for the backend via PM? Then i can check it and use the correct settings.

When it is not possible you should read the documenation about permissions as example here:
http://www.jdownloads.net/documentations/item/controlled-access-to-categories-and-downloads

Title: Re: problem: selecting download link don't download pdf, but opens pdf at text.
Post by: Arno on 21.02.2015 02:20:39
Hi tineskok,
thanks for the login data.

I have checked your backend and have found some strange problems.

I can not save or close a editing page in the backend (for categories or downloads). I get in this case always a 404 error (see screenshot).
The same for the installation function.

As example:
- When i close the category edit page must be the redirect url: http://www.obcestvo.si/administrator/index.php?option=com_jdownloads&view=categories
- But in your case is the redirect url: http://www.obcestvo.si/administrator/index.php?option=com_jdownloads&layout=edit&id=2  which not can be exist!

But this can not be a bug, as it is not possible for me to reproduce it here. Also has nobody else submitted a problem like this.

Can it be that you have changed anything in your .htaccess file?
Or a problem with your JSN Power Admin Component?   
I have no idea what this can be...  ::)



[gelöscht durch Administrator]
Title: Re: problem: selecting download link don't download pdf, but opens pdf at text.
Post by: tineskok on 21.02.2015 10:53:07
Hi, Arno  :)

Now it's working!
- when i close the category edit page it is redirected to http://www.obcestvo.si/administrator/index.php?option=com_jdownloads&view=categories
- the same for downloads page it is redirected to: http://www.obcestvo.si/administrator/index.php?option=com_jdownloads&view=downloads
There are no 404 error any more.
And download links are now working as they should. See pic.
Can you identify what was a problem?

Thanks a lot!
Best regards,
Tine Skok


[gelöscht durch Administrator]
Title: Re: selecting download link don't download pdf, but opens pdf at text. - [Solved]
Post by: Arno on 21.02.2015 11:41:09
This is very strange!  ???
I had last night only updated the JSN Admin Component and the jD Component. But had afterwards the described problems.

But anyway! It is working now.  ;D 8)





Title: Re: selecting download link don't download pdf, but opens pdf at text. - [Solved]
Post by: Arno on 26.02.2015 14:20:27
Hi tineskok,
can it be that you have also installed this plugin?
http://www.jdownloads.com/forum/index.php?topic=7898.msg31578#msg31578