diff --git a/REST/functions.php b/REST/functions.php index 790a59ed..1da288ac 100644 --- a/REST/functions.php +++ b/REST/functions.php @@ -576,5 +576,6 @@ function exportToCSVFile($res, $fullpath, array $headers = null, $delimiter = '; } fclose($fp); - return ['ok'=>true, 'path'=>$fullpath, 'rows'=>$count, 'error'=>null]; + $chmod_ok = @chmod($fullpath, 0664); + return ['ok'=>true, 'path'=>$fullpath, 'rows'=>$count, 'chmod'=>$chmod_ok, 'error'=>null]; } \ No newline at end of file