diff options
Diffstat (limited to 'index.html')
| -rw-r--r-- | index.html | 82 |
1 files changed, 42 insertions, 40 deletions
@@ -9,52 +9,54 @@ <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> + <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 +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 configuration</a>. This includes some other services too. - </p> - </div> + </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 configuration</a>. This includes some other services too. + </p> + </div> + </center> </body> </html> |
