I just upgraded my PHP version and got this "Is a directory" error even though I was sure my file wasn't a directory. Turns out:
php -r 'echo "upload_max_filesize: " . ini_get("upload_max_filesize") . "\n";'
Was reset back to 2MB
so increasing it fixed the issue.