2

On my site users can upload photos by using CCK image field. However I would like to keep the images uploaded by users on the server even though users delete them on node edit form.

I'm not sure if this is possible or not.. Or backing up the images frequently is the only way?

2
  • possible duplicate of this question: drupal.stackexchange.com/questions/2090/…
    – schnippy
    Feb 13, 2012 at 1:53
  • Thanks, I'm actually on drupal 6. I tried to hack the core as it's described but I couldn't find function drupal_unlink in includes/file.inc. Sorry I'm not a coder and I can't figure out how to convert the way from Drupal7 to Drupal6. Any idea?
    – chinita7
    Feb 13, 2012 at 5:37

1 Answer 1

1

I used a module called Filefield Sources together with IMCE. And on the file field's configuration page, I enabled the "IMCE Browser" option for additional sources.

I did a few tests and any files attached to a node using the "IMCE Browser" method doesn't get deleted when the file is removed from a node on node edit screen. But files added through the normal "Upload" method do get deleted, so I think you should upload files using the IMCE Browser too as it has a file uploader as well.

I'm not sure how to remove or hide the actual default "Upload" method on the file field though.

1
  • Thanks for the information. This method seems to work if the default "Upload" can be removed. I'll keep on searching the way to do that.
    – chinita7
    Feb 15, 2012 at 6:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.