mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
src build elFinder-2.1-6974f1b
This commit is contained in:
@@ -1495,7 +1495,7 @@ class elFinderVolumeBox extends elFinderVolumeDriver
|
||||
**/
|
||||
protected function _mkfile($path, $name)
|
||||
{
|
||||
return $this->_save(fopen($this->getTempFile(), 'wb'), $path, $name, array());
|
||||
return $this->_save($this->tmpfile(), $path, $name, array());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1677,7 +1677,7 @@ class elFinderVolumeBox extends elFinderVolumeDriver
|
||||
$tmpFilePath = isset($metaDatas['uri']) ? $metaDatas['uri'] : '';
|
||||
// remote contents
|
||||
if (!$tmpFilePath || empty($metaDatas['seekable'])) {
|
||||
$tmpHandle = fopen($this->getTempFile(), 'wb');
|
||||
$tmpHandle = $this->tmpfile();
|
||||
stream_copy_to_stream($fp, $tmpHandle);
|
||||
$metaDatas = stream_get_meta_data($tmpHandle);
|
||||
$tmpFilePath = $metaDatas['uri'];
|
||||
|
||||
Reference in New Issue
Block a user