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
Comment #1
ontwerpwerk commentedat the moment fckeditor for drupal cannot do that
Comment #2
ontwerpwerk commentedA 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.
Comment #3
ontwerpwerk commentedMaybe I should look into this modules for integration: http://drupal.org/project/filebrowser_extensions
Comment #4
AmirTheSeventh commentedjust 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?
Comment #5
snufkin commentedit 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.
Comment #6
storbaek commentedAny news on allowing user and / or node specific folders to FCKeditor?
Comment #7
ontwerpwerk commentedthis will probably have to wait until there is a working file api - which should be drupal 6 :)
Comment #8
coupet commentedyes, should attempt to implement per user dynamic folder in current ver 6 dev, then can debug and suggest fileapi feature implementation as required.
Comment #9
wwalc commentedUser 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.
Comment #10
cgallo commentedi am trying to do the same. has anyone made any progress?
Comment #11
wwalc commented@cgallo - did you try the latest dev module? %u wildcard is already available... what else do you need?
Comment #12
wwalc commented