File: file_upload.html

package info (click to toggle)
ruby-mechanize 2.7.6-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,480 kB
  • sloc: ruby: 11,380; makefile: 5; sh: 4
file content (26 lines) | stat: -rw-r--r-- 1,047 bytes parent folder | download | duplicates (10)
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
<html>
  <head>
    <title>File Upload Form</title>
  </head>
  <body>
    <h1>File Upload Test</h1>
    <form enctype="multipart/form-data" action="/file_upload" method="post">
      Your name: <input type="text" name="name" /><br />
      File to process: <input name="userfile1" type="file" /><br />
      <input type="text" name="foo[aaron]" value="test" />
      <select name="foo">
      </select>
      <input type="submit" value="Send File" />
    </form>
    <form enctype="multipart/form-data" action="/file_upload" method="post">
      Your name: <input type="text" name="name" /><br />
      File to process: <input name="green[eggs]" type="file" /><br />
      <input type="submit" value="Send File" />
    </form>
    <form enctype="multipart/form-data" action="/file_upload" name="value_test" method="post">
      Your name: <input type="text" name="name" /><br />
      File to process: <input name="green[eggs]" value="/etc/hosts" type="file" /><br />
      <input type="submit" value="Send File" />
    </form>
  </body>
</html>