Using HEAD versions of Drupal and image.module, when I add a new image the files are created in both files/images and files/images/temp. I presume that they are not being deleted from temp.

I haven't looked at the code but I don't understand a couple of things.

1. Why isn't the default files/tmp used?
2. Why are the files copied instead of just moved?
3. Why are there 2 copies of the original file (file.jpg, file_0.jpg)?

Comments

tangent’s picture

To be clear, here is a list of files I have in my filestore after adding an image node.

files/images/DSCN1507.JPG
files/images/DSCN1507.large.JPG
files/images/DSCN1507.medium.JPG
files/images/DSCN1507.preview.JPG
files/images/DSCN1507.thumbnail.JPG
files/images/DSCN1507_0.JPG
files/images/temp/DSCN1507.JPG
files/images/temp/DSCN1507.large.JPG
files/images/temp/DSCN1507.medium.JPG
files/images/temp/DSCN1507.preview.JPG
files/images/temp/DSCN1507.thumbnail.JPG

Ken Collins’s picture

I'm not the maintainer, just asking, I had thought these were cleaned up when cron.php ran?

tangent’s picture

Ack. I don't run cron on my site anymore since a cron snafu that made my host disable my account so that would explain it if true.

It looks like this issue depends on http://drupal.org/node/5961 which is stalled for a few weeks. Let's jump on it.

walkah’s picture

Status: Active » Closed (duplicate)

fixed as per #51600 -- marking as dup.