BeforeNavigate2 has wrong PostData in case you upload file.

I noticed that PostData in BeforeNavigate2 is incorrect in case Post contains file.
Here is an example:
If I post this form
<form name="" method="post" action="print-post.php" enctype="multipart/form-data">
<textarea name="textarea" rows="20" cols="9"></textarea>
<input type="file" name="file" >
<input type="text" name="text" value="" class="edit">
<input type="submit" name="submit">
</form>


Then I'm getting this PostData in BeforeNavigate2:
-----------------------------7d74e33100244
Content-Disposition: form-data; name="textarea"


-----------------------------7d74e33100244
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream



So basically I'm missing everything after file (I'm missing text and submit part of post).
If I remove <input type="file" name="file" > line then I'm getting right data:
-----------------------------7d75d13100244
Content-Disposition: form-data; name="textarea"


-----------------------------7d75d13100244
Content-Disposition: form-data; name="text"


-----------------------------7d75d13100244
Content-Disposition: form-data; name="submit"

Submit Query
-----------------------------7d75d13100244--



So it looks like if I have <input type="file"... in the form then everything after it will be cut off in BeforeNavigate2. Is any workaround it Is there another way how I can retrieve posted data

P.s. Don't pay attention to the fact that there is no data in textarea or text, since I didn't fill them.


Answer this question

BeforeNavigate2 has wrong PostData in case you upload file.

  • MarkNi

    any idea or workaround found, yet


  • Rups11

    It does not appear that this problem was fixed in IE7. I'll file a bug for the next version.
  • Vasanth Thangasamy

    I just found description of this problem on microsoft site http://support.microsoft.com/kb/890177. It says that this is a bug in IE 6.0, but it looks like that it's still not fixed in IE 7.0. Does anybody know if it possible to access all elements from array (not only first element)
  • BeforeNavigate2 has wrong PostData in case you upload file.