Page 1 of 2

J1.6, PD2.0.0 RC3 - Backend upload to folder not working

Posted: 03 Jun 2011, 09:27
by msa1981
Hi,

first of all, thanks for the great component!

I have the following problem on Joomla 1.6.3 with PD 2.0.0 RC3:
The path for PD is /images/phocadownload.
I created subfolder there, e.g. /images/phocadownload/folder1.
When I create a new file in PD and want to upload it via "choose file" in the backend, it doesn't let me navigate into the subfolders. When clicking on a subfolder, it just stays in the main PD folder and only allows me to upload the file there.
In contrary, for the icons, it is working fine - I can navigate wherever I want under /images/phocagallery.

This makes it currently only possible for me to upload the files themselves with Joomla Media Manager.

Can you help out here please?

Thanks and kind regards,
Matthias

Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working

Posted: 06 Jun 2011, 22:50
by Jan
Hi, the default folder is set to: root / phocadownload. You can set your own in options.

Jan

Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working

Posted: 07 Jun 2011, 11:34
by msa1981
Hi Jan,

thanks for the reply - but that is not the problem.

The PhocaDownload folder is set in options to /images/phocadownload.

Find in this link a more detailed description to the problem:
http://load.msartor.de/PD_problem_navigation.pdf

Hope it helps (and you can help)...

Thanks!

Matt

Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working

Posted: 07 Jun 2011, 12:27
by SonRiab
A permission problem maybe? For me it works as expected!
I can navigate to self-created folders (created by using a ftp-client), I can upload, etc.

Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working

Posted: 07 Jun 2011, 12:36
by msa1981
Hi, I wouldn't see why it should be a permission problem, since it is working fine for the icons... But if you have a hint on where to look...

Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working

Posted: 07 Jun 2011, 12:58
by SonRiab
Hmm, I see.
Would you be so kind and set the default directory to images only and test if it is working? =)

Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working

Posted: 07 Jun 2011, 13:10
by SonRiab
By the way:
Jan, why don't you care about the user defined path when choosing the icon? :shock:
You should care about it or make the icon path configurable too.
For me I changed the PhocaDownloadHelper file so it is ignoring the param for getPathSet() and give me the configured path back and not the hardcoded one.

Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working

Posted: 07 Jun 2011, 23:42
by Jan
Hi, the icon is an image which should be allways be in joomla image folder

Sorry for misunderstanding, I thougt we are talking about path to download, so this way it works:

- Icons, there is fixed path - to images/phocadownload folder - if needed, this needs to be customized in the code

- Files, you can change the folder, e.g. if you want to let users download files which are for registered, you will set the path e.g. outside the public_html

So 1) cause, there is no reason to change folder to images, 2) cause there is possible reason to protect the files which should be download e.g. only for registered users.

The problem of parameters is, they slow down the system, so you need to select things which can be set in parameters, if there is some important reason, it can be changed in parameters, if there is no such reason, and there are no so much users who need to have such settings, then this needs to be customized in the code.

Using a lot of parameters can be confusing, slow down the system, on some servers it stops the system working (see Phoca Gallery and Suhosin problems e.g. - https://www.phoca.cz/documents/50-phoca/ ... al-advices (7) )

Not everything what can be added into the parameters (thousands of different combinations) can be added into parameters :-( :-(

Jan

Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working

Posted: 08 Jun 2011, 00:19
by SonRiab
Hmmm, ok!
You are right but in my opinion forcing the user to use the images/phocadownloads folder for icons is not the best solution.
Why not hardcoding the path to the image folder itself? Would be more flexible or am i wrong?
I am personally deleted the folder before and get an error message that the folder is not accessible! :lol:

-Edit-
Oh i forgot: My last comment was not relevant to the topic!
So there is still the problem that he can not navigate when clicking the "choose file" button
but if he clicked the "choose icon" button he can! :)

-Edit2-
Ok harcoding the images folder can also be negative if you do not want the user to access other files! :lol:

Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working

Posted: 08 Jun 2011, 02:41
by SonRiab
Matthias what do you exactly write in the field where you can set the download path?
Something like /images/phocadownload? Or /images/phocadownload/? If yes try images/phocadownload please!
Do you set an absolut path in the expert section?