hello everyone......
i'm one of the fckeditor user....
can anyone tell me how to create folder for each user that use this editor?
bcoz, at this time all user can view all the images that had been uploaded by other user before....
as we all know, the folder that have been saved is static folder and now i want to create dynamic folder.

Comments

ontwerpwerk’s picture

at the moment fckeditor for drupal cannot do that

ontwerpwerk’s picture

Title: dynamic folder » per user dynamic folder / integration with fileapi
Version: 4.6.x-1.x-dev » master
Assigned: fairus » ontwerpwerk
Category: support » feature
Priority: Critical » Minor
Status: Active » Postponed

A user folder and integration with the native drupal file management is obviously an important feature.

Not a priority at the moment, but certainly worth thinking about.

ontwerpwerk’s picture

Maybe I should look into this modules for integration: http://drupal.org/project/filebrowser_extensions

AmirTheSeventh’s picture

Priority: Minor » Normal
Status: Postponed » Active

just want to bring up the subject again, the current way FCKeditor is handling the image uploading is good when there are only one or two admin who work with images, consider this scenario:

Many user create and update different nodes with pictures. I’m sure you agree with me that single directory for the whole site and all users is not the right solution.

I believe the current Drupal file system is good only for sites that managed by 2 or 3 admins, more on this here http://drupal.org/node/11060
Considering that everything is a node in Drupal, I suggest saving all files related to a node (including images) under such a directory:

drupalsiteroot/files/node/[nodenumber]

if someone delete the node, [nodenumber] directory with all files inside it will also be deleted.
and when someone click on picture will only see files inside the node directory and can upload pictures only there.

I think creating folder for each user is wrong, because 1)node becomes dependent on user, user can be deleted but node will remain. 2)user may delete the picture not remembering that he/she used it in a node.

What do you think?

snufkin’s picture

it would be great to have metadata available for each uploaded picture. that way we can set node information where pictures have appeared, which user have uploaded them.

A metafile would deliver several great features, like automatic removal of orphaned pictures, setting ownership of pictures (possibility to have public/private files). essentially you could get the benefits of having user dedicated directories, and dedicated onde directories.

There is a Summer of Code project in this area for Drupal, maybe worth checking out: http://code.google.com/soc/drupal/appinfo.html?csaid=31A32F81A3DD031.

With such an improvement file uploads could be finally used with fckeditors while having a large userbase.

storbaek’s picture

Version: master » 5.x-1.x-dev

Any news on allowing user and / or node specific folders to FCKeditor?

ontwerpwerk’s picture

Version: 5.x-1.x-dev » master

this will probably have to wait until there is a working file api - which should be drupal 6 :)

coupet’s picture

yes, should attempt to implement per user dynamic folder in current ver 6 dev, then can debug and suggest fileapi feature implementation as required.

wwalc’s picture

User specific folders are available in 5.x-2.1 - it is possible to specify UserFiles directory using %u wildcard (UID).
This is just a basic implementation. If user is deleted, files are not deleted automatically.

cgallo’s picture

i am trying to do the same. has anyone made any progress?

wwalc’s picture

@cgallo - did you try the latest dev module? %u wildcard is already available... what else do you need?

wwalc’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.