<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>8584</bug_id>
          
          <creation_ts>2006-04-25 06:27:51 -0700</creation_ts>
          <short_desc>File info is not POSTed when an onsubmit handler is present on the form</short_desc>
          <delta_ts>2006-04-25 21:44:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5196</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Seth Fitzsimmons">seth</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>ddkilzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>40405</commentid>
    <comment_count>0</comment_count>
    <who name="Seth Fitzsimmons">seth</who>
    <bug_when>2006-04-25 06:27:51 -0700</bug_when>
    <thetext>Adding a onsubmit handler to a multipart form with a file input causes the file to not be POSTed to the server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40406</commentid>
    <comment_count>1</comment_count>
      <attachid>7956</attachid>
    <who name="Seth Fitzsimmons">seth</who>
    <bug_when>2006-04-25 06:28:29 -0700</bug_when>
    <thetext>Created attachment 7956
Upload form containing onsubmit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40407</commentid>
    <comment_count>2</comment_count>
      <attachid>7957</attachid>
    <who name="Seth Fitzsimmons">seth</who>
    <bug_when>2006-04-25 06:29:06 -0700</bug_when>
    <thetext>Created attachment 7957
PHP script demonstrating the absence of the &quot;file&quot; property</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40422</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-04-25 10:20:19 -0700</bug_when>
    <thetext>I have tried removing the onsubmit handler, and the output from the script didn&apos;t change (&quot;Array ( [title] =&gt; sometitle )&quot;). Furthermore, it&apos;s the same in Firefox.

Could you please clarify how to reproduce the problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40423</commentid>
    <comment_count>4</comment_count>
    <who name="Seth Fitzsimmons">seth</who>
    <bug_when>2006-04-25 10:30:52 -0700</bug_when>
    <thetext>Er, sorry.  I need to provide a better reduction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40424</commentid>
    <comment_count>5</comment_count>
      <attachid>7960</attachid>
    <who name="Seth Fitzsimmons">seth</who>
    <bug_when>2006-04-25 10:32:28 -0700</bug_when>
    <thetext>Created attachment 7960
Better diagnostic script</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40427</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-04-25 10:52:45 -0700</bug_when>
    <thetext>The updated script works as expected for me (i.e., I cannot reproduce the bug):

Request:
Array
(
    [title] =&gt; sometitle
)

Files:
Array
(
    [file] =&gt; Array
        (
            [name] =&gt; onsubmit.php
            [type] =&gt; text/php
            [tmp_name] =&gt; /var/tmp/php7ISaZd
            [error] =&gt; 0
            [size] =&gt; 124
        )

)

I&apos;m using Mac OS X 10.4.5 with Apache, accessing it locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40430</commentid>
    <comment_count>7</comment_count>
    <who name="Seth Fitzsimmons">seth</who>
    <bug_when>2006-04-25 11:34:49 -0700</bug_when>
    <thetext>That&apos;s correct; I need to track down the problem more fully when I have some more time; in the meantime I figured I should make the diagnostic script clear that it _is_ working this way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40445</commentid>
    <comment_count>8</comment_count>
      <attachid>7966</attachid>
    <who name="Seth Fitzsimmons">seth</who>
    <bug_when>2006-04-25 19:31:01 -0700</bug_when>
    <thetext>Created attachment 7966
Upload form containing onsubmit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40446</commentid>
    <comment_count>9</comment_count>
    <who name="Seth Fitzsimmons">seth</who>
    <bug_when>2006-04-25 19:33:09 -0700</bug_when>
    <thetext>Upon further investigation, this only happens if the form being submitted has its visibility set to &quot;none&quot; (demonstrated in attachment 7966).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40449</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-04-25 21:44:55 -0700</bug_when>
    <thetext>Yes, display:none file input controls are a known bug... Judging form the comments there, WebKit may be not violating the standard, but it is clearly in disagreement with other browsers.

*** This bug has been marked as a duplicate of 5196 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>7956</attachid>
            <date>2006-04-25 06:28:29 -0700</date>
            <delta_ts>2006-04-25 19:30:12 -0700</delta_ts>
            <desc>Upload form containing onsubmit</desc>
            <filename>upload.html</filename>
            <type>text/html</type>
            <size>837</size>
            <attacher name="Seth Fitzsimmons">seth</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFs
Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25h
bC5kdGQiPgo8aHRtbCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+CjxoZWFk
Pgo8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hh
cnNldD1pc28tODg1OS0xIiAvPgo8dGl0bGU+b25zdWJtaXQgcmVkdWN0aW9uPC90aXRsZT4KPHNj
cmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPgp3aW5kb3cub25sb2FkID0gIGZ1bmN0aW9uKCkg
ewogIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJ1cGxvYWRfZm9ybSIpLm9uc3VibWl0ID0gZnVu
Y3Rpb24oKSB7CiAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgidXBsb2FkX3N0YXR1cyIpLnN0
eWxlLmRpc3BsYXkgPSAiYmxvY2siOwogIH0KfQo8L3NjcmlwdD4KCjwvaGVhZD4KCjxib2R5PgoK
PGRpdiBpZD0idXBsb2FkX3N0YXR1cyIgc3R5bGU9ImRpc3BsYXk6IG5vbmU7Ij5VcGxvYWRpbmcu
Li48L2Rpdj4KCjxmb3JtIGFjdGlvbj0iL35zZXRoL29uc3VibWl0LnBocCIgZW5jdHlwZT0ibXVs
dGlwYXJ0L2Zvcm0tZGF0YSIgaWQ9InVwbG9hZF9mb3JtIiBtZXRob2Q9InBvc3QiPgogIFRpdGxl
OiA8aW5wdXQgdHlwZT0idGV4dCIgbmFtZT0idGl0bGUiIC8+PGJyIC8+CiAgRmlsZTogPGlucHV0
IHR5cGU9ImZpbGUiIG5hbWU9ImZpbGUiIC8+PGJyIC8+CiAgPGlucHV0IHR5cGU9InN1Ym1pdCIg
dmFsdWU9IlVwbG9hZCIKPC9mb3JtPgoKPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>7957</attachid>
            <date>2006-04-25 06:29:06 -0700</date>
            <delta_ts>2006-04-25 10:31:25 -0700</delta_ts>
            <desc>PHP script demonstrating the absence of the &quot;file&quot; property</desc>
            <filename>onsubmit.php</filename>
            <type>text/plain</type>
            <size>30</size>
            <attacher name="Seth Fitzsimmons">seth</attacher>
            
              <data encoding="base64">PD9waHAKcHJpbnRfciggJF9SRVFVRVNUICk7Cj8+
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>7960</attachid>
            <date>2006-04-25 10:32:28 -0700</date>
            <delta_ts>2006-04-25 10:32:28 -0700</delta_ts>
            <desc>Better diagnostic script</desc>
            <filename>onsubmit.php</filename>
            <type>text/plain</type>
            <size>124</size>
            <attacher name="Seth Fitzsimmons">seth</attacher>
            
              <data encoding="base64">PD9waHAKaGVhZGVyKCJDb250ZW50LXR5cGU6IHRleHQvcGxhaW4iKTsKZWNobyAiUmVxdWVzdDpc
biI7CnByaW50X3IoICRfUkVRVUVTVCApOwplY2hvICJcbkZpbGVzOlxuIjsKcHJpbnRfciggJF9G
SUxFUyApOwo/Pg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>7966</attachid>
            <date>2006-04-25 19:31:01 -0700</date>
            <delta_ts>2006-04-25 19:31:01 -0700</delta_ts>
            <desc>Upload form containing onsubmit</desc>
            <filename>upload.html</filename>
            <type>text/html</type>
            <size>731</size>
            <attacher name="Seth Fitzsimmons">seth</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFs
Ly9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25h
bC5kdGQiPgo8aHRtbCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+CjxoZWFk
Pgo8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hh
cnNldD1pc28tODg1OS0xIiAvPgo8dGl0bGU+cmVkdWN0aW9uPC90aXRsZT4KPC9oZWFkPgoKPGJv
ZHk+Cgo8Zm9ybSBhY3Rpb249Ii9+c2V0aC9vbnN1Ym1pdC5waHAiIGVuY3R5cGU9Im11bHRpcGFy
dC9mb3JtLWRhdGEiIGlkPSJ1cGxvYWRfZm9ybSIgbWV0aG9kPSJwb3N0Ij4gIAogIEZpbGU6PC9s
YWJlbD4gPGlucHV0IG5hbWU9ImZpbGUiIHR5cGU9ImZpbGUiIC8+PGJyIC8+CiAgPGlucHV0IG5h
bWU9ImNvbW1pdCIgdHlwZT0ic3VibWl0IiB2YWx1ZT0iVXBsb2FkIiAvPgo8L2Zvcm0+CgoKPHNj
cmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPgovLzwhW0NEQVRBWwpkb2N1bWVudC5nZXRFbGVt
ZW50QnlJZCgidXBsb2FkX2Zvcm0iKS5vbnN1Ym1pdCA9IGZ1bmN0aW9uKCkgewogIGRvY3VtZW50
LmdldEVsZW1lbnRCeUlkKCJ1cGxvYWRfZm9ybSIpLnN0eWxlLmRpc3BsYXkgPSAibm9uZSI7CiAg
cmV0dXJuIHRydWU7Cn0KLy9dXT4KPC9zY3JpcHQ+Cgo8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>