Version Description
Chunked, resumable uploading with Amazon S3 and Google Drive - much bigger blogs can now be backed up
Download this release
Release Info
Developer | DavidAnderson |
Plugin | UpdraftPlus WordPress Backup Plugin |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
- includes/class-gdocs.php +5 -2
- updraftplus.php +2 -2
includes/class-gdocs.php
CHANGED
@@ -490,8 +490,11 @@ class UpdraftPlus_GDocs {
|
|
490 |
$cycle_start = microtime( true );
|
491 |
fseek( $this->file['handle'], $this->file['pointer'] );
|
492 |
$chunk = @fread( $this->file['handle'], $this->chunk_size );
|
493 |
-
if ( false === $chunk )
|
494 |
-
|
|
|
|
|
|
|
495 |
|
496 |
$chunk_size = strlen( $chunk );
|
497 |
$bytes = 'bytes ' . (string)$this->file['pointer'] . '-' . (string)($this->file['pointer'] + $chunk_size - 1) . '/' . (string)$this->file['size'];
|
490 |
$cycle_start = microtime( true );
|
491 |
fseek( $this->file['handle'], $this->file['pointer'] );
|
492 |
$chunk = @fread( $this->file['handle'], $this->chunk_size );
|
493 |
+
if ( false === $chunk ) {
|
494 |
+
$is_file = (is_file($this->file['path'])) ? 1 : 0;
|
495 |
+
$is_readable = (is_readable($this->file['path'])) ? 1 : 0;
|
496 |
+
return new WP_Error( 'read_error', "Failed to read from file (path: ".$this->file['path'].", size: ".$this->file['size'].", pointer: ".$this->file['pointer'].", is_file: $is_file, is_readable: $is_readable)");
|
497 |
+
}
|
498 |
|
499 |
$chunk_size = strlen( $chunk );
|
500 |
$bytes = 'bytes ' . (string)$this->file['pointer'] . '-' . (string)($this->file['pointer'] + $chunk_size - 1) . '/' . (string)$this->file['size'];
|
updraftplus.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: UpdraftPlus - Backup/Restore
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/updraftplus
|
5 |
Description: Uploads, themes, plugins, and your DB can be automatically backed up to Amazon S3, Google Drive, FTP, or emailed, on separate schedules.
|
6 |
Author: David Anderson.
|
7 |
-
Version: 1.0.
|
8 |
Donate link: http://david.dw-perspective.org.uk/donate
|
9 |
License: GPLv3 or later
|
10 |
Author URI: http://wordshell.net
|
@@ -60,7 +60,7 @@ define('UPDRAFT_DEFAULT_OTHERS_EXCLUDE','upgrade,cache,updraft,index.php');
|
|
60 |
|
61 |
class UpdraftPlus {
|
62 |
|
63 |
-
var $version = '1.0.
|
64 |
|
65 |
var $dbhandle;
|
66 |
var $errors = array();
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/updraftplus
|
5 |
Description: Uploads, themes, plugins, and your DB can be automatically backed up to Amazon S3, Google Drive, FTP, or emailed, on separate schedules.
|
6 |
Author: David Anderson.
|
7 |
+
Version: 1.0.6
|
8 |
Donate link: http://david.dw-perspective.org.uk/donate
|
9 |
License: GPLv3 or later
|
10 |
Author URI: http://wordshell.net
|
60 |
|
61 |
class UpdraftPlus {
|
62 |
|
63 |
+
var $version = '1.0.6';
|
64 |
|
65 |
var $dbhandle;
|
66 |
var $errors = array();
|