Image files are duplicated
tangent - February 20, 2006 - 06:12
| Project: | Image |
| Version: | 6.x-1.x-dev |
| Component: | image.module |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
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)?

#1
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
#2
I'm not the maintainer, just asking, I had thought these were cleaned up when cron.php ran?
#3
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.
#4
fixed as per #51600 -- marking as dup.