Commit d1b15dd1 authored by Mathieu Loiseau's avatar Mathieu Loiseau
Browse files

Update upload.php (rights)

parent 3fe5e41a
......@@ -33,7 +33,7 @@ function upload($index,$destination,$maxsize=FALSE,$extensions=FALSE,$username)
$file = $fileDestination.$_FILES[$index]['name'];
if (!file_exists($fileDestination)) {
if (!mkdir($fileDestination, 0777, true)) {
if (!mkdir($fileDestination, 0775, true)) {
die('Echec lors de la création des répertoires...');
}
}
......@@ -48,4 +48,4 @@ function upload($index,$destination,$maxsize=FALSE,$extensions=FALSE,$username)
}
?>
\ No newline at end of file
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment