diff --git a/wp-mat.php b/wp-mat.php index 73df700a7b51cc606dfeedbdfb995868ae07e574..ef3585d15f313f503e94c374266ab50db4b0dc55 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.10 + * Version: 0.0.11 * Author: Autistici/Inventati * Author URI: https://www.autistici.org/ * License: MIT @@ -82,7 +82,7 @@ function wp_mat_handle_upload_prefilter($file) { "name" => $file['name'], "type" => $file['type'], "tmp_name" => $file['tmp_name'], - "size" => filesize($new_tmp_file), + "size" => filesize($file['tmp_name']), "error" => 0, ); error_log("wp-mat: successfully cleaned file=".json_encode($new_file));