Skip to content
Snippets Groups Projects
Commit cd294ea5 authored by ale's avatar ale
Browse files

Added more debugging

parent 0d7f9fb2
No related branches found
No related tags found
No related merge requests found
Pipeline #54085 passed
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Plugin Name: wp-mat * Plugin Name: wp-mat
* Plugin URI: https://git.autistici.org/noblogs/wp-mat * Plugin URI: https://git.autistici.org/noblogs/wp-mat
* Description: Process uploaded files through MAT * Description: Process uploaded files through MAT
* Version: 0.0.1 * Version: 0.0.4
* Author: Autistici/Inventati * Author: Autistici/Inventati
* Author URI: https://www.autistici.org/ * Author URI: https://www.autistici.org/
* License: MIT * License: MIT
...@@ -51,7 +51,10 @@ function wp_mat_issue_request($path, $mimetype, $output_path) { ...@@ -51,7 +51,10 @@ function wp_mat_issue_request($path, $mimetype, $output_path) {
} }
function wp_mat_handle_upload_prefilter($file) { function wp_mat_handle_upload_prefilter($file) {
if (isset($file['error'])) { error_log("wp-mat: called with file=".json_encode($file));
if (isset($file['error']) && $file['error']) {
error_log("wp-mat: upload has error set to ".$file['error']);
return $file; return $file;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment