mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Stop using is_uploaded_file(). It provided no real benefit, and prevented async uploads
This commit is contained in:
parent
a9a5290001
commit
162eb552af
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user