diff options
| author | ilotterytea <iltsu@alright.party> | 2025-06-02 01:14:48 +0400 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-06-02 01:14:48 +0400 |
| commit | 2c686a312c3d0a61fe1666a1318c2c4d36535470 (patch) | |
| tree | 3856d4da6aa5c7c0649e16d06c678913c6465526 /public | |
| parent | c3781da6a319782cae885c646ec0ddab479f0a0b (diff) | |
feat: file id prefix
Diffstat (limited to 'public')
| -rw-r--r-- | public/upload.php | 2 |
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)) { |
