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

Log server errors

parent cd294ea5
No related branches found
No related tags found
No related merge requests found
Pipeline #54091 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.4
* Version: 0.0.5
* Author: Autistici/Inventati
* Author URI: https://www.autistici.org/
* License: MIT
......@@ -81,6 +81,7 @@ function wp_mat_handle_upload_prefilter($file) {
"size" => filesize($new_tmp_file),
);
} else {
error_log("wp-mat: server error for file=".json_encode($file));
@unlink($new_tmp_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