PluginProbe
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses / 2.10.01
FluentCommunity – Ultra-Fast High-Performance Social Network, Community, LMS & Online Courses v2.10.01
2.10.0 2.10.01 2.9.1 2.9.0 2.8.1 2.8.0 2.7.7 2.7.5 2.7.0 2.6.01 2.6.0 2.5.0 2.4.01 trunk 1.0.90 1.0.91 1.0.92 1.0.93 1.0.94 1.0.95 1.0.96 1.0.97 1.0.98 1.0.99 1.1.0 All 77 releases
← All changes | app/Services/Libs/FileSystem.php +12 -0 2.6.012.10.01 View file →
@@ -1,8 +1,19 @@
1 1 <?php
2 2
3 3 namespace FluentCommunity\App\Services\Libs;
4 4
5 +/**
6 + * @method string getDir()
7 + * @method mixed get(string $file)
8 + * @method string getAbsolutePathOfFile(string $file)
9 + * @method array uploadFromRequest()
10 + * @method array put(array $files)
11 + * @method void delete(array|string $files)
12 + * @method void overrideUploadDir()
13 + * @method array setCustomUploadDir(array $param)
14 + * @method array renameFileName(array $file)
15 + */
5 16 class FileSystem
6 17 {
7 18 /**
8 19 * Read file content from custom upload dir of this application
@@ -69,8 +80,9 @@
69 80 $uploadedFile = \wp_handle_upload($filesArray, $uploadOverrides);
70 81
71 82 if (isset($uploadedFile['error'])) {
72 83 $uploadedFiles[] = new \WP_Error('upload_error', $uploadedFile['error']);
84 + continue;
73 85 }
74 86
75 87 $uploadedFile['original_name'] = $originalName;
76 88