Facebook-f X-twitter
EncodeByte
Need Help!
  • How-To
    How-ToShow More
    How To Redirect Old Website To New Domain Without Losing SEO | 301 Domain Redirect
    By
    Franchbabu
    How to Fix the “Windows Cannot Be Installed to This Disk” Error
    By
    EncodeMore
    How to Check Your Laptop’s Battery Health: A Step-by-Step Guide
    By
    EncodeMore
    How to Become a Freelancer in 2025: A Comprehensive Guide.
    By
    EncodeMore
    How to Activate Windows Legally and For Free (100% Working)
    By
    EncodeMore
  • Web Development & Coding
    Web Development & CodingShow More
    How to Become a Freelancer in 2025: A Comprehensive Guide.
    By
    EncodeMore
    Top In-Demand Freelancer Niches for 2025 – Fast Growth Ahead!
    By
    EncodeMore
    🚀 10 Reasons Why Hostinger Is the Best Web Hosting Platform for Speed, Security & Affordability
    By
    Franchbabu
    How to Add “Made with ❤️” to Your WordPress Footer (No Plugin Needed)
    By
    EncodeMore
    WordPress Redirect After Login: How to Set It Up
    By
    EncodeMore
  • Code Snippets & Scripts
    Code Snippets & ScriptsShow More
    How to Hide a Class in WordPress (Easy CSS & Admin Tips)
    By
    EncodeMore
  • Website Design & UX
    Website Design & UXShow More
    10 Web Design Mistakes That Are Killing Your User Experience (and How to Fix Them)
    By
    Franchbabu
  • Make Money Online
    Make Money OnlineShow More
    How to Become a Freelancer in 2025: A Comprehensive Guide.
    By
    EncodeMore
    Top In-Demand Freelancer Niches for 2025 – Fast Growth Ahead!
    By
    EncodeMore
    Website related skillsets that you shoud have
    By
    EncodeMore
    Top Sites Like Fiverr: The Best Fiverr Alternatives for Freelancers
    By
    Franchbabu
    Best Telegram Channels For Free Paid Courses
    By
    Franchbabu
  • 🤩 Trending:
  • How-To Guides
  • WordPress & Website Development
  • Web Development & Coding
  • Windows & Software Fixes
  • Tech Tips, Tools & Tutorials
  • Computer Tips & Tricks
Font ResizerAa
EncodeByteEncodeByte
Search
  • How-To
  • Web Development & Coding
  • Code Snippets & Scripts
  • Website Design & UX
  • Make Money Online
Follow US
Made by ThemeRuby using the Foxiz theme. Powered by WordPress
WordPress & Website DevelopmentHow-To Guides

How to upload APK file in WordPress (The Easy Way)

How to Allow WordPress to Upload All File Types

Last updated: February 22, 2024 3:45 pm
By
Franchbabu
Share

Looking for a way to upload APK file in WordPress website? If so, then you have come to the right place.

Contents
Today I will show you how to upload APK file in WordPress.Method 1: My FavouriteMethod 2:Method 3:How to Allow All File Types in WordPress?Enable File Types on Your SiteAdd a Custom File Type

In this article, I’ll teach you how to allow WordPress to upload any file type. So, let’s begin.

This is a list of common file extensions that you may easily add to your website.

  • Images: .jpg, .png, .gif, .jpeg, ico
  • Documents: .pdf, .doc, .ppt, .odt, .xls, .psd
  • Audio: .mp3, .m4a, .ogg, .wav
  • Video: .mp4, .mov, .avi, .mpg, .ogv,. .3gp, .3g2

You will see the error shown below if you attempt to upload a file with an extension other than these.

Today I will show you how to upload APK file in WordPress.

Method 1: My Favourite

  • Go to your Cpanel, and open file manage.
  • Create a folder named app at the root of your domain.
  • Upload the APK file inside the folder. And it’s done.
  • APK download link will be like https://encodebyte.com/app/ebyte.apk

Method 2:

  • Go to your Cpanel, and open file manage.
  • Find the Public_html folder and click to open.
  • Find the wp-config.php file by swiping it down, and click Edit.
How to upload APK file in WordPress

Now add the following code at the end of the wp-config.php and click the save changes button. See the image below for reference.

define('ALLOW_UNFILTERED_UPLOADS', true);
How to upload APK file in WordPress

Click on Save Changes, and that’s it. Now you can easily upload APK file in WordPress

Method 3:

Step 1: Log in to your WordPress Dashboard.

Step 2: Go to Appearance >> Theme File Editor

Step 3: Add this code to your theme functions.php

add_filter('upload_mimes', 'allow_custom_mimes');

function allow_custom_mimes ( $existing_mimes=array() ) {
// ' with mime type 'application/vnd.android.package-archive'
$existing_mimes['apk'] = 'application/vnd.android.package-archive';
return $existing_mimes;
}

Click on Update File, and that’s it.

How to Allow All File Types in WordPress?

You may add any file type to your WordPress website by simply following these steps.

Login to your WordPress dashboard and then Navigate to Plugins » Add New Plugin. Next, use the search field to look up File Upload Types by WPForms, and then click Install and Activate.

Enable File Types on Your Site

You can do this by heading to Settings and selecting File Upload Types. The plugin will then display a list of file kinds, including their description, MIME type, and extension.

Simply enable any file formats you wish to accept on your WordPress site and click Save Changes.

Add a Custom File Type

Can’t find your desired file type in the list? Don’t worry, because the File Upload Types plugin allows you to add custom file types.

Scroll down and you’ll see an opportunity to enter a custom file type. Simply enter the file’s description, MIME type, and extension and click the addition (+) sign.

When you are finished with your new custom file extension, click Save Settings.

Congratulations!
You can now upload all file formats to your WordPress site.

TAGGED:how toWordPress
Share This Article
Facebook Whatsapp Whatsapp LinkedIn
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Categories

Themes & Customization

1 Article

Troubleshooting & Fixes

1 Article

WordPress Tips & Tricks

6 Articles

WordPress Tutorials

5 Articles

Must Read

WordPress & Website DevelopmentHow-To Guides

How to Create a Private/Password Protected Post or Page in WordPress

How-To GuidesSEO Tips & StrategiesWordPress Tutorials

How To Redirect Old Website To New Domain Without Losing SEO | 301 Domain Redirect

Computer Tips & TricksHow-To Guides

How to Repair a Bad Hard Disk (Hard Disk Low Level Format)

How-To GuidesTech Tips, Tools & Tutorials

How to Remove URLs From Google Search

  • I need help with …

Starting a Blog

WordPress SEO

WordPress Performance

WordPress Errors

WordPress Security

Got A Question?

Need Expert Help?
Let CodeXcool power up your website with
custom WordPress design, speed optimization, and SEO!
🚀 Get Started

You Might also Like

How-To GuidesWordPress & Website Development

Your PHP installation appears to be missing the MySQL extension which is required by WordPress – SOLUTION

WordPress & Website DevelopmentHow-To Guides

How to Fix “Add New Plugin Menu Not Showing” In WordPress?

How to Install an Additional Keyboard Language on Windows 10

WordPress & Website DevelopmentWeb Development & Coding

How to Add “Made with ❤️” to Your WordPress Footer (No Plugin Needed)

EncodeByte

© 2025 EncodeByte – Discover expert tech tutorials, coding guides, troubleshooting solutions, and free tools. Simplify technology, build smarter, and learn faster with us.

About Us / Privacy Policy / Contact Us

Latest News

  • Coming Soon
  • Coming Soon
  • Coming Soon
  • Coming Soon

Services

  • Coming Soon
  • Coming Soon
  • Coming Soon
  • Coming Soon

Looking for custom web development or maintenance?

Check out our parent team at [CodeXcool.com] 🚀
— Let's build together!
Request a Quote
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?