Modification request
-
I appreciate that you developed this plugin.
Nephila clavata has a function to download files that do not exist in the local directory from S3.
However, this was unsuccessful when called via “admin-ajax.php” or if there was no “date directory” under the “uploads” directory.As a result of investigating, these problems could be solved by applying the following modifications.
(1) class-NephilaClavata.php line 243
[new]
} else if (!is_admin() || $pagenow === ‘upload.php’ || $pagenow === ‘admin-ajax.php’) {[old]
} else if (!is_admin() || $pagenow === ‘upload.php’) {(2) class-S3_helper.php Before “file_put_contents” on line 129
[Additional code]
$dirpath = dirname($download_path);
if (!file_exists($dirpath)) {
mkdir($dirpath, 0705, true);I hope you accept this fix if there are no mistakes.
- The topic ‘Modification request’ is closed to new replies.