By highvoltage on
I'd like to have users be able to upload files to a node, but i don't want them to delete the files of other users. I was told filefield has no means of providing this behavior. Is there any way at all to allow users to add files, but prevent them from removing them somehow? Maybe something superficial like hiding all elements of the file upload form except what's neccessary to upload by role?
There's got to be some way to achieve this with drupal. It's functionality i see all across the net. I would think drupal would be shooting itself in the foot if it lacked the capability to handle something like this.
Thanks for reading.
Comments
_
The way I did this was to have users submit files to different nodes then present the list of files with views.
Hey there, thanks for
Hey there, thanks for responding. Could you elaborate a bit more? I'm not sure how I would keep something like that centralized on the node where everything is displayed. I'm basically trying to create a wiki like page where users can come and add/edit files/information regarding the theme of the page. Uploading files needs to be accessible from the display page that would be aggregating the files and displaying them.
_
I don't know of any way to control file attachments from different users on the same node. So what I did was create a content type of "file" so each user has update access only to the node for the files they uploaded, then I used http://drupal.org/project/views to display a list of files related to the node being viewed that displays as a block. If you really want it integrated into the wiki page you could simply add a http://drupal.org/project/viewreference cck field (instead of using a block view) to display the list of files right in the node itself.