3 <script type=
"text/javascript">
4 var submittedFiles
= 0;
8 document
.getElementById('console').appendChild(document
.createTextNode(message
+ "\n"));
11 function verifyResults()
13 if (submittedFiles
== 3) {
14 var frame
= document
.getElementById('fr');
15 frame
.parentNode
.removeChild(frame
);
22 <body onload=
"test()">
24 This tests that the multi-file upload control works correctly. This test and the resources/multiFileResources must be placed on a web server so the test can be run manually.
<br>
25 Choose
"testFile1.html" "testFile2.html" and
"testFile3.html" and submit the form.
<br>
26 You should see a
"Test Passed" or a
"Test Failed" message after submitting the form.
<br>
28 <form method=
"post" enctype=
"multipart/form-data" action=
"resources/multiFileResources/post-echo-and-notify-done.cgi" id=
"myForm" target=
"targetFrame">
29 <input type=
"file" id=
"target" multiple
name=
"multiFileInput"></input>
30 <input type=
"submit" value=
"Submit">
32 <iframe name=
"targetFrame" id=
"fr"></iframe>
33 <pre id='console'
></pre>