diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-01-05 00:37:10 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-01-05 00:37:10 +0000 |
| commit | 08da5273ebc148c320ae7f2b9ecd2b2b1c1bc5f0 (patch) | |
| tree | 31be5d19550ab52a439bc399d215a1a5581fba97 /roundcubemail/program/steps/mail/upload.inc | |
| parent | e786e636683429a4c57dbea03b4e35007a593371 (diff) | |
Optimized loading time; added periodic mail check; added EXPUNGE command
git-svn-id: https://svn.roundcube.net/trunk@93 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/upload.inc')
| -rw-r--r-- | roundcubemail/program/steps/mail/upload.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/upload.inc b/roundcubemail/program/steps/mail/upload.inc index 308ec796e..4cd929d0d 100644 --- a/roundcubemail/program/steps/mail/upload.inc +++ b/roundcubemail/program/steps/mail/upload.inc @@ -39,7 +39,7 @@ $response = ''; foreach ($_FILES['_attachments']['tmp_name'] as $i => $filepath) { $tmpfname = tempnam($temp_dir, 'rcmAttmnt'); - if (copy($filepath, $tmpfname)) + if (move_uploaded_file($filepath, $tmpfname)) { $_SESSION['compose']['attachments'][] = array('name' => $_FILES['_attachments']['name'][$i], 'mimetype' => $_FILES['_attachments']['type'][$i], |
