I've noticed this issue in 5.x, and it seems not solved in 6.x.

  • Create a custom content type
  • Grant edit / create privileges to both anonymous and authenticated users
  • Grant "view uploaded files" privileges on authenticated user and anonymous users
  • Grant "upload files" permission only to authenticated user

As authenticated user, add a file to a custom content type you've created (I try with admin account before granting privileges) typing some text in the body (or type nothing).

Logout and, as anonymous user, type some text in the body (we have edit privileges on that content type). Save, and the files disappears from view and from node.

What's wrong?

Comments

NancyDru’s picture

Version: 6.3 » 7.x-dev

This has to move to 7.x for any hope of getting fixed.

webchick’s picture

Version: 7.x-dev » 6.x-dev

Upload module has been removed from Drupal 7. Moving down to 6.x.

Greg Varga’s picture

Subscribing.

We also bumped into this issue. We got Editor, Publisher and Admin roles. Editors and Admins got the "upload files" permission but we forgot to assign this to the Publishers. After an Editor created a new node, attached 15-20 files using the upload module and saved the node, the Publisher went in and edited the node and published it (saved the node). All the attached files were gone.

This is unexpected and a serious bug. If a user who has no permission to upload files edits the node the attachments on the node shouldn't be deleted.

I guess this won't be fixed in D6 as the module is not in D7, but I thought I document this issue for further reference.

Gergely

NancyDru’s picture

It's sort of in D7, but it's called File and it's a field handler.

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.