summaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-06-18 15:19:21 +0500
committerilotterytea <iltsu@alright.party>2025-06-18 15:19:21 +0500
commitaeff80740333ec49d13638f36b2bc74bc820404c (patch)
tree16daf7a82b950bc278383828e50cf410a6e9f7f9 /public/index.php
parent70f40b94ad7f2d9eeb82a9313049e96d8fbc068d (diff)
feat: set file password
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/index.php b/public/index.php
index a6fa197..9e3dc4e 100644
--- a/public/index.php
+++ b/public/index.php
@@ -334,6 +334,13 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt');
</td>
</tr>
<tr>
+ <th>Password<span class="help" title="For file deletion">[?]</span>:</th>
+ <td><input type="text" name="password"
+ placeholder="Leave empty if you want the file to be non-deletable"
+ value="<?= generate_random_char_sequence(FILE_ID_CHARACTERS, FILE_DELETION_KEY_LENGTH) ?>">
+ </td>
+ </tr>
+ <tr>
<th>Preserve original filename:</th>
<td><input type="checkbox" name="preserve_original_name" value="1"></td>
</tr>