File: main.html

package info (click to toggle)
libaws 20.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 16,656 kB
  • sloc: ada: 95,505; python: 2,270; ansic: 1,017; makefile: 829; xml: 235; javascript: 202; java: 112; sh: 106
file content (32 lines) | stat: -rw-r--r-- 1,059 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Upload Demo</title>
  </head>
  <body>
    <p>This is an upload form, please select a file:</p>
    <form id="fupload" enctype="multipart/form-data"
          action="/upload" method=post>
      <input name=filename type=file>
      <input type=submit name=go value="Send File">

      <!--  The following iframe is the recipient for the upload  --
        --  response. It is made invisible here, one could let it --
        --  visible to display the response from the server.      -->
      <iframe id="upload_target" name="upload_target" src=""
              style="width:0;height:0;border:0px solid #fff;"></iframe>

    </form>
  </body>

<script type="text/javascript">
function init() {
      document.getElementById('fupload').onsubmit=function() {
         document.getElementById('fupload').target = 'upload_target';
    }
}
window.onload=init;
</script>

</html>