|
@@ 1122-1126 (lines=5) @@
|
| 1119 |
|
$remoteArchiveFile = $dir . DIRECTORY_SEPARATOR . $name; |
| 1120 |
|
|
| 1121 |
|
// upload archive |
| 1122 |
|
if (!ftp_put($this->connect, $remoteArchiveFile, $path, FTP_BINARY)) { |
| 1123 |
|
$this->setError(elFinder::ERROR_FTP_UPLOAD_FILE, $remoteArchiveFile); |
| 1124 |
|
$this->deleteDir($tmpDir); //cleanup |
| 1125 |
|
return false; |
| 1126 |
|
} |
| 1127 |
|
|
| 1128 |
|
// return to initial work directory |
| 1129 |
|
chdir($cwd); |
|
@@ 1404-1407 (lines=4) @@
|
| 1401 |
|
|
| 1402 |
|
// upload to FTP and clear temp local file |
| 1403 |
|
|
| 1404 |
|
if (!ftp_put($this->connect, $path, $local_path, FTP_BINARY)) { |
| 1405 |
|
$this->setError(elFinder::ERROR_FTP_UPLOAD_FILE, $path); |
| 1406 |
|
$this->deleteDir($tmpDir); //cleanup |
| 1407 |
|
} |
| 1408 |
|
|
| 1409 |
|
$this->clearcache(); |
| 1410 |
|
return $this->stat($path); |