Why is the form with target set to an iframe opening in a new window?
This is the proper way of submitting a form through a named
<form action="/upload" method="post" enctype="multipart/form-data" target="uploader_iframe">
<input type="file" name="image" />
<input type="submit" />
<iframe id="uiframe" name="uploader_iframe">
target value of the form should be the
name of the form NOT THE
id! If you forget to give the
iframe a name, the form submission will take place in a new window.