diff --git a/inc/RemoteAPICore.php b/inc/RemoteAPICore.php index 450c6f39eacc4b82b81619354fd732033515cf9f..d8d4d5b7bab883cd7d48dc87ca37cdba4987155d 100644 --- a/inc/RemoteAPICore.php +++ b/inc/RemoteAPICore.php @@ -471,7 +471,7 @@ class RemoteAPICore { // save temporary file @unlink($ftmp); - io_saveFile($ftmp, $file->getValue()); + io_saveFile($ftmp, $file); $res = media_save(array('name' => $ftmp), $id, $params['ow'], $auth, 'rename'); if (is_array($res)) {