Closed jamalewd closed 2 years ago
Not really documented well, but you can use the EXTERNAL_HOOK
how to use it? I don't really understand
const EXTERNAL_HOOK = null; //external program to call for each upload const AUTO_FILE_EXT = false; //automatically try to detect file extension for files that have none
You can put a path to an executable in there, that'll get called for every upload. Just have a look at the code around line 150
You can put a path to an executable in there, that'll get called for every upload. Just have a look at the code around line 150
can you write it down for me? i just want to block .php
If you're trying to prevent people uploading and executing PHP code, you're doing everything very wrong.
so what should i do to prevent others from executing php?
Configure your webserver so it doesn't handle any files but index.php as executable.
how to block .php .apk files?