Fix VFS ajax uploads did not work if path needed expansion

This commit is contained in:
nathangray 2016-10-05 16:10:30 -06:00
parent 19a67b92fd
commit fa8f53e6d4

View File

@ -327,6 +327,14 @@ class Vfs extends File
}
else
{
if(!is_numeric($id))
{
$_id = self::expand_name($id,0,0,0,0,self::$request->content);
if($_id != $id)
{
$id = $_id;
}
}
$path = Api\Link::vfs_path($app,$id,'',true);
}
if (!empty($relpath)) $path .= '/'.$relpath;