| @@ -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 | |