Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

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) ...@@ -33,7 +33,7 @@ function upload($index,$destination,$maxsize=FALSE,$extensions=FALSE,$username)
$file = $fileDestination.$_FILES[$index]['name']; $file = $fileDestination.$_FILES[$index]['name'];
if (!file_exists($fileDestination)) { if (!file_exists($fileDestination)) {
if (!mkdir($fileDestination, 0777, true)) { if (!mkdir($fileDestination, 0775, true)) {
die('Echec lors de la création des répertoires...'); die('Echec lors de la création des répertoires...');
} }
} }
...@@ -48,4 +48,4 @@ function upload($index,$destination,$maxsize=FALSE,$extensions=FALSE,$username) ...@@ -48,4 +48,4 @@ function upload($index,$destination,$maxsize=FALSE,$extensions=FALSE,$username)
} }
?> ?>
\ No newline at end of file
Markdown is supported
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