aboutsummaryrefslogtreecommitdiff
path: root/index.html
blob: bc0f79371ba1326c9e13ee0538c4a1db2460112b (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
56
57
58
59
60
<!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="https://xolatile.top/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>
    <div style="width: 50em;">
      <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>
        Upchud is a FOSS file uploader service, originally developed for
        <a href="https://up.chud.cyou">up.chud.cyou</a>
      </p>
      <p>
        Original source:
        <a href="https://git.xolatile.top/anon/upchud">git.xolatile.top/anon/upchud</a>
      <br />
        This deployment's source:
        <a href="https://git.xolatile.top/emil/up.chud.cyou">git.xolatile.top/emil/up.chud.cyou</a>
      </p>
      <p>Contact and abuse reports via <a href="mailto:admin@chud.cyou">email</a>.</p>
      <p>
        <a href="https://files.xolatile.top/0x0_config.el">Emacs.</a> This includes some other services too.
      </p>
    </div>
  </body>
</html>