Let's say I've uploaded an image using the "attach new image" dialog, and then I preview the post. Everything looks good; I get a thumbnail and everything. Then I click submit and the attached image disappears. When I go to edit the node again, there's no sign of the image. This only happens when I click Preview. If I just click submit, everything is just fine. What could be the problem? any thoughts?
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | image_attach_168981_0.patch | 3.72 KB | drewish |
| #7 | preview.patch | 1.24 KB | marcingy |
| #2 | image_attach_168981.patch | 1.31 KB | drewish |
Comments
Comment #1
drewish commentedmarked http://drupal.org/node/174162 as a duplicate
Comment #2
drewish commenteddoes this do anything for you?
Comment #3
marcingy commentedI've tried it as we were having the same issue (against 5.1.4). It didn't work for me howeverI have made a change which seems to work
Comment #4
marcingy commentedsorry it 5.1.5 we are using
Comment #5
marcingy commentedPrevious code seemed to cause some issue with new posts. This appears to fix the issue for new nodes:
Comment #6
drewish commentedplease provide the changes as a patch, it makes it much easier to test and review. see this link for more information on creating patches: http://drupal.org/patch
Comment #7
marcingy commentedpatch as requested
Comment #8
drewish commentedah, i see what's going on. i think this might be a better way to do it.
Comment #9
marcingy commentedI'll give this patch a try later and will let you know if it solves the problem.
Comment #10
marcingy commentedIt seems to work more or less but on occasions I get an error that the thumbnail can't be scaled. I'll let you know the image size that is causing this issue as I suspect it might be a memory issue on my site.
Comment #11
drewish commentedi went ahead and committed this to HEAD and DRUPAL-5
Comment #12
(not verified) commented