aboutsummaryrefslogtreecommitdiff
path: root/index.html
blob: fdbd1ac2b770f55e90d1e935cb0d1ab7580bddd6 (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#" lang="en">
  <head>
    <link rel="canonical">
    <link rel="icon" type="image/png" sizes="32x32" href="/chud/img/favicon.png">
    <link rel="stylesheet" type="text/css" href="/style.css">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=0.5">
    <title id="title">up.chud.cyou</title>
  </head>
  <body>
    <center>
      <div class="box">
        <form action="https://up.chud.cyou/upchud.tcl" method="post" enctype="multipart/form-data">
          <fieldset>
            <legend>Upload a file</legend>
            <label>
              Select file:
              <input type="file" name="file" required>
            </label>
            <button type="submit">Upload</button>
          </fieldset>
        </form>
        <p>You may upload files using the above form or the following command:</p>
        <pre>
curl https://up.chud.cyou --upload-file 'file'
# alternatively
curl https://up.chud.cyou -F'file=@file'
# as a shell function
upload(){
url="$1"
shift
if [ -z "$@" ] ; then curl "$url" -F"file=@/dev/stdin"; fi
for i in "$@"; do
if [ "$i" = "-" ]; then i="/dev/stdin" ; fi
curl "$url" -F"file=@$i"
done
}
chud(){ upload "https://up.chud.cyou" "$@" ; }
        </pre>
        <p>
          Files are wiped monthly and may not be larger than 100 mebibytes.
        </p>
        <p>
          <a href="https://git.xolatile.top/anon/upchud">[Original Source]</a>
          <a href="https://git.xolatile.top/emil/up.chud.cyou">[Deployment's Source]</a>
        </p>
        <p><a href="mailto:admin@chud.cyou">Contact & Reports</a>.</p>
        <p>
          <a href="https://files.xolatile.top/0x0_config.el">Emacs configuration</a>.
        </p>
      </div>
    </center>
  </body>
</html>