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
Tags v0.1.1
No related merge requests found
Pipeline #54085 passed
......@@ -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.1
* Version: 0.0.4
* Author: Autistici/Inventati
* Author URI: https://www.autistici.org/
* License: MIT
......@@ -51,7 +51,10 @@ function wp_mat_issue_request($path, $mimetype, $output_path) {
}
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;
}
......
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