/
psxu_config.php
40 lines (26 loc) · 1.13 KB
/
psxu_config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
// $url will be the url where this runs.
// No / at the end.
$url = "https://example.com";
// if files should go in a subdirectory, enter it's name below.
// otherwise, leave empty ($directory = "")
// make sure the directory exists!
$directory = "file";
// $randlen will be the amount of random characters to generate for a file's name.
$randlen = 4;
// with all settings left default, files would be available as "https://example.com/file/asdf.png"
// $secret_key will be your "password" for uploading here.
// no one other than you and sharex should know this.
$secret_key = "change this with a random string";
// $restricted_extensions will not allow files with these extensions (default: php | exe | sh)
$restricted_extensions = ['php', 'exe', 'sh'];
// if set to 'true' (default), will verify the MIME headers of the uploaded file.
$verify_header_prefixes = true;
// list of allowed MIME header prefixes
$allowed_headers = [
'image/', // image types
'video/', // video types
'audio/', // audio types
'text/', // plain or rich text types
'application/' // mostly archiving formats or privative media formats.
];