Previewing hinders image upload
| Project: | Rotor Banner |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
hello
thanks a lot for the module.
i am trying it locally to see if fits on a site where i am collaborating.
i have installed jquery, upload elements, views and views ui and rotor.
since i want to build horitzontal banners and vertical, i have assigned a taxonomy to this type of content.
when i go to publish a new banner, i can use the "Rotor image field" perfectly but when i preview, the image disapears.
if i save, the image dont show.
if i re-edit, the image it is not there.
if after the preview, i try to upload again the image, it gives to me an error: "Validation error, please try again. If this error persists, please contact the site administrator."
looking on my drupal/files/tmp i can see the image but the image gets copied to the files folder.
any clue on what i have missconfigured?

#1
just in case it is useful, i am using ubuntu 8.10 with firefox 3.0.10
#2
i have been invetigating and if i take off the preview as required, it works. (Administer > Content Management > Content Settings)
so i think some variable must be missed if you preview.
i change it as a bug report (i hope i do well since i am not very use to this system)
#3
I can confirm this bug. Previewing kills the pic although the node is created. This node is picked up by the view but of course shows only the tab text and no image.
#4
#5
A new dev version of Upload Element will be ready in the next 24 hours for testing. Please test and give feedback so I can push through into production as version 6x-1.3.
Duplicate of http://drupal.org/node/487358
#6
Please try with the latest -dev releases of both Rotor and upload_elements and report back.
#7
Hi Tom
I'm going to be super busy of the next few months - work is crazy busy, and there is no end in sight. If you have any patches or if want cvs access yourself to resolve any issues just create an issue / contact me.
I was going to refactor the module 6 months back when quicksketch decided to effectively do exactly the same thing for D7 [managed_file] and that made any major work here a waste of time. The module needs to be refactored so that the rendering stages are not cached between submissions (and updating the form elements storage cache) or (easier & preferred approach) removing the form_id based functions. This has the side effect of having less security and different forms sharing the same tmp storage.
Happy with any solutions / suggestions.
The current workaround is to disable the preview on node forms that have the element.