Getting the error: The upload failed: File content validation failed: detected MIME type 'text/html'

Website URL

(please specify the URL of the site on which you are experiencing the problem)

Error Message

The upload failed: File content validation failed: detected MIME type ‘text/html’ does not match expected types for ‘.php’ extension. Expected: text/x-php, text/plain, application/x-php

Other Information

I added one line of code to the file index.php and am now getting this error when trying to upload the updated version of the file from my PC. What is causing this error?

What’s causing this error are bugs with the latest version of the file manager. A solution is being worked on. In the mean time, we recommend using a desktop FTP client like FileZilla.