[SOLVED] Problem to preview a file in a subfolder

Phoca Download - download manager
maninblack57
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 16 Nov 2013, 17:31

[SOLVED] Problem to preview a file in a subfolder

Post by maninblack57 »

Hi there,
I have a problem with the parameter "Download folder (play, preview)" in general options.
My Phocadownload version is 2.1.9 / Joomla! 2.5.14
I initialized both download folder and download folder (play, preview) to "images/phocadownload".
I have no problem when I create a new document in backend. Phocadownload is able to find my files in this subfolder.
However, when I click on the "preview" button in frontend, I trigger a 404 error : File not found, and I notice that the url of my file is set to :
[Mysite/images\phocadownload/Myfile.pdf] instead of [Mysite/images/phocadownload/Myfile.pdf]
Do you know why the slash afer "images" is transformed in backslash ? Is it possible to preview a file registered in a subfolder ?
Thanks for your attention
Last edited by maninblack57 on 28 Nov 2013, 10:41, edited 1 time in total.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem to preview a file in a subfolder

Post by Jan »

Hi, the slash should not do the problem - you should check if the path is correct :idea: Does it work Ok, when you leave the play and preview folder as default :idea:

Preview file in subfolder - first you need to set right path (if not the default) - then you can upload the file to some subfolder but you need to set the folder name to file name in file edit - so the path will be correct.

Jan
If you find Phoca extensions useful, please support the project
maninblack57
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 16 Nov 2013, 17:31

Re: [SOLVED] Problem to preview a file in a subfolder

Post by maninblack57 »

Thanks for your answer ; I understand now where the problem comes from.
When I test my site in a Windows 7 local server (locahost) it doesn't work :x but when I install the same site on a Unix server it works great ! :twisted:
Post Reply