You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#110061 Allow access to only one folder (/images/owner for ex.) to the users connected in frontend

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by hardys on Saturday, 22 January 2022 21:55 GMT

Django29
Hello
I don't want that any registered user connected in frontend, who is allowed to add articles, can see and use all the folder and subfolders /images.
In JCE, in Editor profiles/Frontend/File system/File directory path, I recorded a subdirectory of /images, but it doesn't work.

So, what is the solution.

And it would be even better that we could allow a different folder for each user ...

Ryan
First, make sure the Front-end profile is ordered above the "Default" profile - https://www.joomlacontenteditor.net/support/documentation/profiles/profiles-ordering

In JCE, in Editor profiles/Frontend/File system/File directory path, I recorded a subdirectory of /images, but it doesn't work.

And it would be even better that we could allow a different folder for each user ...


To restrict each user to their own folder within the images directory, add the following to the File Directory Path field in Editor Profiles -> Editor Parameters -> Filesystem:

images/$id

It is best to use $id (the user id) instead of the username in case the user changes their username!

See - https://www.joomlacontenteditor.net/support/tutorials/editor/setting-the-file-directory-path

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Django29
Do you mean, I have to enter "images/$id", and each user will have automatically his folder created ?
Or is it necessary to create a profile in JCE for each user, in which "id" is replaced by his user ID ? (not a solution, they are too numerous).

... or I may not have understood anything ?

hardys
please see: https://www.joomlacontenteditor.net/support/tutorials/editor/setting-the-file-directory-path

6. The folder will be created if it does not exist.