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
J1.6, PD2.0.0 RC3 - Backend upload to folder not working
-
msa1981
- Phoca Newbie

- Posts: 6
- Joined: 03 Jun 2011, 09:18
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working
Hi, the default folder is set to: root / phocadownload. You can set your own in options.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
msa1981
- Phoca Newbie

- Posts: 6
- Joined: 03 Jun 2011, 09:18
Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working
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
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
-
SonRiab
- Phoca Professional

- Posts: 258
- Joined: 02 Jun 2011, 09:29
- Contact:
Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working
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.
I can navigate to self-created folders (created by using a ftp-client), I can upload, etc.
-
msa1981
- Phoca Newbie

- Posts: 6
- Joined: 03 Jun 2011, 09:18
Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working
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...
-
SonRiab
- Phoca Professional

- Posts: 258
- Joined: 02 Jun 2011, 09:29
- Contact:
Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working
Hmm, I see.
Would you be so kind and set the default directory to images only and test if it is working? =)
Would you be so kind and set the default directory to images only and test if it is working? =)
-
SonRiab
- Phoca Professional

- Posts: 258
- Joined: 02 Jun 2011, 09:29
- Contact:
Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working
By the way:
Jan, why don't you care about the user defined path when choosing the icon?
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.
Jan, why don't you care about the user defined path when choosing the icon?
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.
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working
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
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
If you find Phoca extensions useful, please support the project
-
SonRiab
- Phoca Professional

- Posts: 258
- Joined: 02 Jun 2011, 09:29
- Contact:
Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working
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!
-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!
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!
-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!
-
SonRiab
- Phoca Professional

- Posts: 258
- Joined: 02 Jun 2011, 09:29
- Contact:
Re: J1.6, PD2.0.0 RC3 - Backend upload to folder not working
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?
Something like /images/phocadownload? Or /images/phocadownload/? If yes try images/phocadownload please!
Do you set an absolut path in the expert section?