mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 10:38:12 +01:00
SFTP: resuming uploads didn't work
This commit is contained in:
parent
20852adf78
commit
08478feee7
@ -1878,7 +1878,7 @@ class SFTP extends SSH2
|
||||
$offset = $start;
|
||||
} elseif ($mode & self::RESUME) {
|
||||
// if NET_SFTP_OPEN_APPEND worked as it should _size() wouldn't need to be called
|
||||
$size = $this->size($remote_file);
|
||||
$size = $this->stat($remote_file)['size'];
|
||||
$offset = $size !== false ? $size : 0;
|
||||
} else {
|
||||
$offset = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user