Closed (fixed)
Project:
Drupal core
Version:
x.y.z
Component:
upload.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2005 at 00:46 UTC
Updated:
4 Jan 2006 at 17:40 UTC
In internet explorer, upon attaching files when editing a node, a new window will launch, then nothing happens. In Firefox and Opera, ajax upload works without problem, where no new windows launches or reloading the page itself.
Comments
Comment #1
decafdennis commentedI have the same problem. Temporary workaround is to use the old way of uploading, by using the Preview or Submit button instead of the Attach or Upload button.
Comment #2
decafdennis commentedShould be Drupal:upload.module, not upload (simple).
Comment #3
decafdennis commentedThe cause of this problem is that Internet Explo
drer does not like to post to iframes that are dynamically created. When I add this line inupload_form()in upload.module:<?php $output .= '[iframe name="redirect-target" id="redirect-target" style="position: absolute; visibility: hidden;"][/iframe]'; ?> replace [ and ] with < and >, sorry, otherwise Drupal thinks this is suspicious code, tell me how else I should do this?...it works just fine. An iframe is not valid xhtml however, so this is only a temporary fix and another solution should be nice. I can't find one, unfortunately.
Comment #4
Steven commentedThe problem is not that the iframe is dynamically added, but that we set is name/id through DOM attributes. Apparently IE does not pick these up. But other browsers require the current behaviour. So, we should do both.
Fixed in CVS.
Comment #5
(not verified) commented