From 549595ab2b41c960b771d533621a68021d4131b2 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Fri, 2 Jun 2023 11:47:19 +0100
Subject: [PATCH] Explicitly set error to 0 in returned $file

---
 wp-mat.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/wp-mat.php b/wp-mat.php
index d94b447..694f051 100644
--- a/wp-mat.php
+++ b/wp-mat.php
@@ -3,7 +3,7 @@
  * Plugin Name: wp-mat
  * Plugin URI: https://git.autistici.org/noblogs/wp-mat
  * Description: Process uploaded files through MAT
- * Version: 0.0.7
+ * Version: 0.0.8
  * Author: Autistici/Inventati
  * Author URI: https://www.autistici.org/
  * License: MIT
@@ -79,6 +79,7 @@ function wp_mat_handle_upload_prefilter($file) {
             "type" => $file['type'],
             "tmp_name" => $new_tmp_file,
             "size" => filesize($new_tmp_file),
+            "error" => 0,
         );
         error_log("wp-mat: successfully cleaned file=".json_encode($new_file));
         $file = $new_file;
-- 
GitLab