41 lines
1.5 KiB
HTML
41 lines
1.5 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>/tmp/files 2.0 - API</title>
|
||
|
<meta http-equiv="content-Type" content="text/html; charset=UTF-8" />
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||
|
<link href="/css/style.css" media="all" rel="stylesheet" type="text/css" />
|
||
|
<link href='//fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css' />
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="container">
|
||
|
<header>
|
||
|
<h1><a href="/">/tmp/files</a></h1>
|
||
|
<h2>Because Sometimes, Older Is Better</h2>
|
||
|
</header>
|
||
|
<section>
|
||
|
<p>You can use our API to automate file uploads.</p>
|
||
|
<br>
|
||
|
<p>Method: POST</p>
|
||
|
<p>Params: file=/path/to/test.jpg; max_views=[1 to 1000]; max_time=[1 to 120];</p>
|
||
|
<p>Only the file param is required, the rest, if not specified, will be set to the following default values:</p>
|
||
|
<p>max_views=0; max_time=60</p>
|
||
|
<p>URL: __APIHOST__/api/v1/upload</p>
|
||
|
<br>
|
||
|
<p>Example with CURL:</p>
|
||
|
<p>curl -F "file=@/Users/myuser/test.jpg" -F "max_views=0" -F "max_time=60" __APIHOST__/api/v1/upload</p>
|
||
|
<p>This file has no download limit, and will expire in 1 hour.</p>
|
||
|
</section>
|
||
|
<footer>
|
||
|
<ul>
|
||
|
<li><a href="/">Upload</a></li>
|
||
|
<li><a href="/api.html">API</a></li>
|
||
|
<li><a href="/about.html">About</a></li>
|
||
|
<li><a href="https://computernewb.com/collab-vm/">CollabVM</a></li>
|
||
|
<li><a href="https://up.kevinthe.horse/">KevinUpload</a></li>
|
||
|
</ul>
|
||
|
</footer>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|