Add buttons to copy links and bbcode
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<table>
|
||||
<tr>
|
||||
<td>Param</td>
|
||||
<td>Type</td>
|
||||
<td>Required</td>
|
||||
<td>Maximum Size</td>
|
||||
<td>Default</td>
|
||||
@@ -18,15 +19,25 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td>name</td>
|
||||
<td>string</td>
|
||||
<td>false</td>
|
||||
<td>255 Characters</td>
|
||||
<td>Multipart file name</td>
|
||||
<td>Name of the file to upload</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>anonymous</td>
|
||||
<td>boolean</td>
|
||||
<td>false</td>
|
||||
<td>N/A</td>
|
||||
<td>false</td>
|
||||
<td>If the file should be uploaded anonymously</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>file</td>
|
||||
<td>multipart file</td>
|
||||
<td>true</td>
|
||||
<td>5 000 000 000 Bytes</td>
|
||||
<td>10 000 000 000 Bytes</td>
|
||||
<td>none</td>
|
||||
<td>Multipart file to upload</td>
|
||||
</tr>
|
||||
|
@@ -15,7 +15,8 @@
|
||||
<h4>Example</h4>
|
||||
<pre>
|
||||
{
|
||||
"title": "My beautiful photos",
|
||||
"title": "My beautiful photos", // Defaults to "Pixeldrain List"
|
||||
"anonymous": false / true, // If true this list will not be linked to your user account. Defaults to "false"
|
||||
"files": [ // Ordered array of files to add to the list
|
||||
{
|
||||
"id": "abc123",
|
||||
|
@@ -23,6 +23,8 @@
|
||||
</div>
|
||||
<div class="highlight_dark border_bottom">
|
||||
<button id="btn_create_list">Create list with uploaded files</button>
|
||||
<button id="btn_copy_links">Copy links to clipboard</button>
|
||||
<button id="btn_copy_bbcode">Copy BBCode to clipboard</button>
|
||||
</div>
|
||||
|
||||
<h1>What is Pixeldrain?</h1>
|
||||
@@ -138,7 +140,6 @@
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">var API_URL = "/api";</script>
|
||||
<script src="/res/script/listmaker.js"></script>
|
||||
<script src="/res/script/compiled/home.js"></script>
|
||||
{{template "analytics"}}
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user