Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: decafdennis commentedShould be Drupal:upload.module, not upload (simple).
Comment #3
decafdennis CreditAttribution: 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 CreditAttribution: 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) CreditAttribution: commented