Uploaded image is erased when previewing a post before submitting it

To see this defect you will need to create a flexinode with an image field associated to it..

Steps-To-Repro:
1. Submit an entry for the flexinode
2. Fill out all the required fields
3. Upload an image
4. Preview

Results
5. The image will not be displayed

Workaround
6. Upload an image again and submit

Comments

pulpzebra’s picture

The image is not uploaded and there comes a Warning in line 47 and 48 of field_image.inc. This doesn't happen when you just save the node entry.

munga’s picture

Version: » master

I've the same problem with the cvs version... I think the upload module (core) solves
this problem with a bit of js. Is it possible to use the same js ?

p

benma’s picture

Hello,

I wrote up a few more details about this bug here, maybe this helps in finding a solution ... I would be very grateful for one :-)

Ben.

benma’s picture

sorry, link doesn't work (and why doesn't the preview work on here...?)

the details can be found here: http://drupal.org/node/63321#comment-119842

Ben.

kzeng’s picture

I got the following error message when I submitted a flexinode-based content type with image:

Call to undefined function: _image_get_thumb_order() in flexinode/contrib/field_imagegal.inc on line 52

Bèr Kessels’s picture

Status: Active » Closed (duplicate)

this is a known bug. It is on the critical list http://drupal.org/node/40811