PHP Warning when uploading via WP API
-
When uploading Media files (in my case PDF, PNG, HTM and JPG) via the WP REST-API I got a PHP Warning “Undefined Index: file in resmushit.php:114”. The corresponding PHP line is
$basefile = basename($attachments[ 'file' ]);
Turning off auto-optimization resolved the error (as resmushit is not executed anymore automatically on upload).
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP Warning when uploading via WP API’ is closed to new replies.