When I use the edit function to replace an existing image with a new one, the original image is not replaced.

If the existing image is xyz.jpg, and I wish to replace it with a better quality image (say 123.jpg) I select the edit option. In the image field I browse to the location of 123.jpg. If I leave the field to rebuild derivatives unchecked and then click submit, neither the original image or its derivatives are replaced. If I check the option to rebuild derivatives, thumbnail and preview versions of 123.jpg are created, but the original remains xyz.jpg.

What am I doing wrong? Is this a bug, is it not supposed to work the way I expect, or do I have something misconfigured?

Comments

mediameriquat’s picture

Title: Replacing image » Replacing image -- files stucked in the temp directory
Category: support » bug

I have a very similar problem... Images get "stuck" in the /files/images/temp/ directory and are not written in the /files/images/ dir.

I wonder if this has to do with "write" permissions?! Nothing changed on my server, though.

Using the "Preview" button will somehow show me the new image and thumbnail, but when I re-publish the node it all reverts to the old ones.

With FTP, I can drag and drop the files generated in the temp directory towards the images directory and that "solves" the problem, but of course average users cannot do that.

Image replacement worked fine for a little while, and stopped working without reason. This module is giving me a headache... What do I say to clients who payed for a Drupal upgrade and then experience this bug? Gimme more money so that I configure CCK+Views+Imagefield & rebuild the whole image galleries, or do nothing and take all the shit?

mediameriquat’s picture

As stated in this issue: http://drupal.org/node/213858, the 5.x-2.x-dev version shouldn't have been recommended.

Reverting to the 5.x-1.6 solved all my problems... well... almost : The image now ends up below the text, which is annoying when we want to enter a long description. Users have to scroll down to see the image.

sun’s picture

Title: Replacing image -- files stucked in the temp directory » Previous image not deleted when replacing image
Version: 5.x-2.x-dev » 6.x-1.x-dev

Better title. Bugs get fixed in HEAD first.

joachim’s picture

Status: Active » Closed (fixed)

Tested on fresh code on a localhost with sites/default/files/images open in the Finder to check.
Not seeing this problem. Closing.