Commit cdeae645 authored by Gabriel Moreau's avatar Gabriel Moreau
Browse files

Get status when copy datasheet (to be improve)

parent 36eb11f3
......@@ -130,7 +130,9 @@ function set_datasheet_new($pdo, $equipment_id, $datasheet_filename_upload, $tmp
$new_dir = $new_datasheet_path.'/'.$sub_path;
if (!is_dir($new_dir))
mkdir($new_dir, 0755);
move_uploaded_file($tmp_file, $new_dir.'/'.$datasheet_filename_kebab);
$status = move_uploaded_file($tmp_file, $new_dir.'/'.$datasheet_filename_kebab);
if (!$status)
echo 'Erreur dans la creation de la notice';
return $id_datasheet;
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