summaryrefslogtreecommitdiff
path: root/public/upload.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-06-02 01:14:48 +0400
committerilotterytea <iltsu@alright.party>2025-06-02 01:14:48 +0400
commit2c686a312c3d0a61fe1666a1318c2c4d36535470 (patch)
tree3856d4da6aa5c7c0649e16d06c678913c6465526 /public/upload.php
parentc3781da6a319782cae885c646ec0ddab479f0a0b (diff)
feat: file id prefix
Diffstat (limited to 'public/upload.php')
-rw-r--r--public/upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/upload.php b/public/upload.php
index ae550c9..705f32b 100644
--- a/public/upload.php
+++ b/public/upload.php
@@ -94,7 +94,7 @@ try {
throw new RuntimeException('No URL or file specified');
}
- $file_id = generate_random_char_sequence(FILE_ID_CHARACTERS, FILE_ID_LENGTH);
+ $file_id = FILE_ID_PREFIX . generate_random_char_sequence(FILE_ID_CHARACTERS, FILE_ID_LENGTH);
$file_data['id'] = $file_id;
if (isset($url)) {