Erstelle das datadir wenn es nicht existiert
This commit is contained in:
parent
be17525b25
commit
4af6907f36
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
include('config.php');
|
include('config.php');
|
||||||
|
|
||||||
|
if(!is_dir($datadir)) {
|
||||||
|
mkdir($datadir);
|
||||||
|
}
|
||||||
|
|
||||||
if(isset($_FILES['upload'])) {
|
if(isset($_FILES['upload'])) {
|
||||||
$extension = pathinfo($_FILES['upload']['name'], PATHINFO_EXTENSION);
|
$extension = pathinfo($_FILES['upload']['name'], PATHINFO_EXTENSION);
|
||||||
if($extension == 'jpg' || $extension == 'jpeg' || $extension == 'png') {
|
if($extension == 'jpg' || $extension == 'jpeg' || $extension == 'png') {
|
||||||
|
|
Loading…
Reference in New Issue