News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

selecting download link don't download pdf, but opens pdf at text. - [Solved]

Started by tineskok, 20.02.2015 02:43:08

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tineskok

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.




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]
  •  

Arno

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]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

tineskok

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]
  •  

Arno

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.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

tineskok

  •  

Arno

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

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

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]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

tineskok

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]
  •  

Arno

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)





Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •