Front End uploaded images not in designated folder

Phoca Gallery - image gallery extension
heerten
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 22 Nov 2011, 01:28

Front End uploaded images not in designated folder

Post by heerten »

Hi all,

I have a website with Joomal 1.7.3 and Phoca Gallery 3.1.1. Now I have a small but annoying problem with user uploads.
I have a root category named "Upload". I am marked as owner, registered users can upload images. The owner folder is set to "uploads". This folder exists (/images/phocagallery/uploads) and is set to 777.
I'm not using the UCP, the users go to the gallery, and if they click category "Uploads", they get the upload panel.
The users have to create a sub-category and than do their uploads. I am not getting any messages, and the images are sent to the server. So far so good. :D :twisted:

But I expect them to appear in a subfolder of "Uploads". Now a seperate folder is created named "[userid]-[part of sub-category title]-[number]. It is created directly in /images/phocagallery. :o So for instance /images/phocagallery/jojo-testit-5183. I expected /images/phocagallery/uploads/jojo-testit-5183. I don't want them on the place they get now, it clutters up the folder-structure and I have to move them manually. :evil:

I did a wide search on this forum, but didn't find a solution.

What did I do wrong? :idea: (I tried to remove myself as owner, but that didn't help)

Regards,
Harm
uscher
Phoca Member
Phoca Member
Posts: 10
Joined: 20 May 2011, 14:32

Re: Front End uploaded images not in designated folder

Post by uscher »

Jepp, lokks like an older issue allready. I got same here in JOOMLA 1.7.3 + PG 3.0.1.

Enyone else has this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Front End uploaded images not in designated folder

Post by Jan »

Hi, to manage the images, rights, etc. every user has own folder where images are stored of him/her. To not have such feature, the component needs to be customized (but then there can be problems with rights, etc. :-( )

Jan
If you find Phoca extensions useful, please support the project
uscher
Phoca Member
Phoca Member
Posts: 10
Joined: 20 May 2011, 14:32

Re: Front End uploaded images not in designated folder

Post by uscher »

I understand your statement and it is good that every user has its own directory. But like herteen wrote bevor:

"...But I expect them to appear in a subfolder of "Uploads". Now a seperate folder is created named "[userid]-[part of ..."

So this will end up in a mess when there are houndrets of users without havin a root directory.
heerten
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 22 Nov 2011, 01:28

Re: Front End uploaded images not in designated folder

Post by heerten »

Hello Jan,

That's not what your own documentation says.
User Folder - select the folder on your server disc (images/phocagallery/selected-folder ... selected-folder is a folder created in images/phocagallery/ folder e.g. via FTP or Media Manager) where the uploaded images will be saved. If the User Folder is not set, frontend user will be not able to upload images.
I can't find a User Folder anymore, but I can find a owner folder. I filled that.
The folder of the catergory Uploads is set. Every registered user can upload here. So I expect the files to come in the uploads folder, because that's what the documentation says. I like it that each user gets his own subfolder, but it should be created in the category folder, not in the root.

Harm
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Front End uploaded images not in designated folder

Post by Jan »

Hi, some parts in documentation are obsolete - user folder is owner folder.

For creating the subfolder in category not in the root - the gallery needs to be customized :-(

https://www.phoca.cz/phoca-needs-your-help/
If you find Phoca extensions useful, please support the project
uscher
Phoca Member
Phoca Member
Posts: 10
Joined: 20 May 2011, 14:32

Re: Front End uploaded images not in designated folder

Post by uscher »

step 1: i creat category and select category folder and set the permissions

Image

step 2: i log in with permitted user in the frontend and im able to create subcategories, upload pics, multiple upload...

Image

Step 3: the sub-cats are created and the pics are uploaded successfully when i check in FTP

Image

But as you can see, the cats + subcats are created outside of the selected folder in step 1.
The selected category folder is of course existing.

But as you can see in step 3: all created subcats are not inside the selcted category folder.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Front End uploaded images not in designated folder

Post by Jan »

Hi, Phoca Gallery uses independent database and filesystem layer - user folders are created in root of phocagallery image and don't follow filesystem structure.

Jan
If you find Phoca extensions useful, please support the project
uscher
Phoca Member
Phoca Member
Posts: 10
Joined: 20 May 2011, 14:32

Re: Front End uploaded images not in designated folder

Post by uscher »

ok, i see this this. For me this not really a problem, coz i dont have many users. But how about sites with many users. The managment will be less headache if each user has its own folder - with hes sub-cats in it.
And....what is the step 1 for when the cats are not inside the selected cat-directory?
Post Reply