When an image is uploaded, even if the node is not saved in any way, the image stays uploaded in the Drupal installation.

This can cause serious issues, that I prefer not to describe.

EDIT : I want anonymous users to be able to post/upload, but normally an honest anonymous needs to submit passed the security test. But, at the moment with this module, any abusive engine can submit stuff even though it fails to submit the node.

Did I forget to configure something or is this just a major weakness in this module ?

I qualified this as a bug as this is not an intended behaviour.

Comments

michael_lessard_micles.biz’s picture

Issue summary: View changes

Added a precision indicated by EDIT.

quicksketch’s picture

Category: bug » support
Priority: Major » Normal
Status: Active » Fixed

When an image is uploaded, even if the node is not saved in any way, the image stays uploaded in the Drupal installation.

Yes that's right, the image needs to be uploaded in order for the "Preview" to work correctly and to prevent the file name from unexpectedly changing on the user. Imagine if the user needed to embed the image in the post, they need the path not to change.

When files are uploaded, they are marked as "temporary" in the "files" database table (status = 0). Files that are not marked permanent (status = 1) are deleted on cron jobs after 6 hours.

michael_lessard_micles.biz’s picture

Ah, if non-perm. images are deleted by the module, that is good to know ! :P

I presume they are marked as temp. in the module table, as the images are not placed in the temp folder.

quicksketch’s picture

I presume they are marked as temp. in the module table, as the images are not placed in the temp folder.

Right. That's what I just said. Though the "files" table is used by all modules that manage files, not just ImageField and FileField.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

( a spelling mistake )