Plugin & Theme installation fails with error message “Upload failed”

Available with the following:
MainWP Core
Table of Contents

Server Configuration

When installing a plugin or theme by upload, ensure that your server permits uploads of the .zip file size.

If the PHP Function tmpfile() is disabled on the server hosting your MainWP Dashboard, the plugin upload will fail. In this case, please contact your hosting provider to have the function enabled.

Security Rules

Additionally, a common issue that might prevent uploads is a security rule blocking the connection to the server hosting your MainWP Dashboard.

Please try to:

  • Remove any security rules present in the .htaccess file where the MainWP Dashboard is installed
  • Disable any security plugins running on your MainWP Dashboard site
  • Disable Firewall running on your MainWP Dashboard server
  • Disable HTTP Basic Auth protection on the URL of the MainWP Dashboard

Localhost Setup

Please note that if the MainWP Dashboard is hosted locally, the localhost will most likely not be configured to accept external traffic, and the same error message “Upload failed.” will be displayed.

Still Have Questions?
Search for additional solutions in the MainWP Community or start your own discussion
MainWP Community

Table of Contents

Search MainWP.com

[searchwp_form id="1"]