FIX: mail presend: can overwrite a file previously uploaded
This commit is contained in:
parent
3a99ef7319
commit
b85ed3e0b7
@ -43,7 +43,7 @@ if (GETPOST('addfile','alpha'))
|
||||
$vardir=$conf->user->dir_output."/".$user->id;
|
||||
$upload_dir_tmp = $vardir.'/temp'; // TODO Add $keytoavoidconflict in upload_dir path
|
||||
|
||||
dol_add_file_process($upload_dir_tmp, 0, 0, 'addedfile', '', null, $trackid);
|
||||
dol_add_file_process($upload_dir_tmp, 1, 0, 'addedfile', '', null, $trackid);
|
||||
$action='presend';
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user