main chld/web / assets / curl_response
 1<pre>Warning: php.ini: upload_max_filesize (100) set lower than MAX_FILESIZE (512)
 2</pre><pre>Warning: php.ini: post_max_size (100) set lower than MAX_FILESIZE (512)
 3</pre><!DOCTYPE html>
 4<html lang="en">
 5<head>
 6    <title>Filehost</title>
 7    <meta name="description" content="Minimalistic service for sharing temporary files." />
 8    <meta name="viewport" content="width=device-width, initial-scale=1" />
 9</head>
10<body>
11<pre>
12 === How To Upload ===
13You can upload files to this site via a simple HTTP POST, e.g. using curl:
14curl -F "file=@/path/to/your/file.jpg" https://f.9larp.net/
15
16Or if you want to pipe to curl *and* have a file extension, add a "filename":
17echo "hello" | curl -F "file=@-;filename=.txt" https://f.9larp.net/
18
19To use a longer file ID (up to 24 characters), add -F id_length=&lt;number&gt;
20
21On Windows, you can use <a href="https://getsharex.com/">ShareX</a> and import <a href="https://f.9larp.net/?sharex">this</a> custom uploader.
22On Android, you can use an app called <a href="https://github.com/Rouji/Hupl">Hupl</a> with <a href="https://f.9larp.net/?hupl">this</a> uploader.
23
24
25Or simply choose a file and click "Upload" below:
26(Hint: If you're lucky, your browser may support drag-and-drop onto the file 
27selection input.)
28</pre>
29<form id="frm" method="post" enctype="multipart/form-data">
30<input type="file" name="file" id="file" />
31<input type="hidden" name="formatted" value="true" />
32<input type="submit" value="Upload"/>
33</form>
34<pre>
35
36
37 === File Sizes etc. ===
38The maximum allowed file size is 512 MiB.
39
40Files are kept for a minimum of 31, and a maximum of 180 Days.
41
42How long a file is kept depends on its size. Larger files are deleted earlier 
43than small ones. This relation is non-linear and skewed in favour of small 
44files.
45
46The exact formula for determining the maximum age for a file is:
47
48MIN_AGE + (MAX_AGE - MIN_AGE) * (1-(FILE_SIZE/MAX_SIZE))^2
49
50
51 === Source ===
52The PHP script used to provide this service is open source and available on 
53<a href="https://github.com/Rouji/single_php_filehost">GitHub</a>
54
55
56 === Contact ===
57If you want to report abuse of this service, or have any other inquiries, 
58please write an email to admin@example.com
59</pre>
60</body>
61</html>