Stop using is_uploaded_file(). It provided no real benefit, and prevented async uploads

This commit is contained in:
Nathan Gray 2013-02-05 09:27:41 +00:00
parent a9a5290001
commit 162eb552af

View File

@ -438,8 +438,7 @@ class filemanager_ui
{
// encode chars which special meaning in url/vfs (some like / get removed!)
$to = egw_vfs::concat($content['nm']['path'],egw_vfs::encodePathComponent($upload['name']));
if ($upload && is_uploaded_file($upload['tmp_name']) &&
if ($upload &&
(egw_vfs::is_writable($content['nm']['path']) || egw_vfs::is_writable($to)) &&
copy($upload['tmp_name'],egw_vfs::PREFIX.$to))
{