Vor dem Upload werden alle File Extensions zu lowercase gemacht
This commit is contained in:
parent
dc768566fc
commit
e7fb076f12
@ -12,6 +12,7 @@ if(!is_dir($datadir)) {
|
||||
|
||||
if(isset($_FILES['upload'])) {
|
||||
$extension = pathinfo($_FILES['upload']['name'], PATHINFO_EXTENSION);
|
||||
$extension = strtolower($extension);
|
||||
|
||||
if($extension == 'jpg' || $extension == 'jpeg' || $extension == 'png') {
|
||||
$filename = generate_filename($length) . '.' . $extension;
|
||||
|
Loading…
Reference in New Issue
Block a user