taking care of a reported problem by r.berger, as tmpname of uploaded files turns out to be the same all the time, when you upload files with same extensions in some enviroments

This commit is contained in:
Klaus Leithoff 2009-10-13 15:31:54 +00:00
parent 00c61c6370
commit f493966008

View File

@ -96,9 +96,7 @@
$tmpFileName = $GLOBALS['egw_info']['server']['temp_dir'].
SEP.
$GLOBALS['egw_info']['user']['account_id'].
$this->composeID.
basename($_formData['file']);
md5(time().$GLOBALS['egw_info']['user']['account_id'].$this->composeID.basename($_formData['file']));
if (is_uploaded_file($_formData['file']))
{