hostit(7) Miscellaneous Information Manual hostit(7)

SYNOPSIS

$ curl -T nyan_cat.gif https://hostit.tfnux.org/upload/

DESCRIPTION

Temporary file sharing service

This server allows you to upload a file via HTTP, and get a download link valid for the specified duration.

EASY MODE

Expiration
Name
File

CLI

Upload

$ curl -T <file> https://hostit.tfnux.org/upload/<public_filename>

set retention time

$ curl -T <file> https://hostit.tfnux.org/upload/<public_filename>?max-age=<duration_seconds>

set content-type

$ curl -T <file> -H 'Content-Type: <mimetype>' https://hostit.tfnux.org/upload/<public_filename>

If not given, it is guessed using file(1).

Download

Use the Location header or url field from the returned json.

$ curl https://hostit.tfnux.org/obj/<guid>/<public_filename>

metadata

$ curl https://hostit.tfnux.org/obj/<guid>

SETTINGS

This server has the following configuration:

Max file size
1GiB
Max retention time
3 months
Default retention time
7 days

BUGS

None. Obviously.