The Small Business Website Guy

  • Home
  • Blog
  • About
  • WordPress Help
  • Services
    • WordPress Help
    • Hacked Site Cleanup
    • Website Management Program
    • Domain Registration
    • Web Hosting
  • Testimonials
  • Contact Us

May 18, 2011 by John

Solving File Upload Size Limit Problems in WordPress

I recently got a question from a small business website owner who was having difficulty with a file upload size limit in WordPress. He wanted to upload an audio file to his WordPress-powered website via the WordPress Media Library. His web host had the file upload size limit capped at 4MB and the audio file is considerably larger. His web host was happy to give him instructions on how to increase the file upload, but he was only able to achieve a maximum of 8MB which was still too little for this particular audio file.

Here’s what I recommended: don’t use WordPress’ Media Library to upload large files like audios, etc. I use FTP to upload most media to my sites for a couple of reasons:

First, there’s no size limitation to deal with. Depending on the size of the largest file you may want to upload now or in the future, you may or may not be able to get your web host to allow a large enough maximum size via the WordPress Media Library.

Second, I can put the media where I want it rather than letting WordPress put it where it wants to. WordPress has its own default convention for where it stores Media Library uploads which results in a long, fairly complex URL. Typically, it will be something like http://yoursite.com/wp-content/uploads/2011/05/filename.mp3 assuming you uploaded something in the year 2011 in the month of May. Note that it categorizes uploads by year and month. That’s fine if you use the media library to retrieve them and insert them into a page or post. If you create links manually like I do, it makes it difficult to remember the link, especially if you uploaded it a while ago. I have enough trouble remembering what I had for breakfast this morning!

It’s much simpler to create a directory on your server called “audios” or something easy to remember and just upload any audios there via FTP. Yes, I know you can configure WordPress to tell it where to upload things, but it’s a global setting meaning that all uploads will go to that one directory. With FTP you can have an “audios” directory, a “videos” directory, etc.

If you have a lot of audio and/or video media on your site, you will want to consider using Amazon S3 for storing your media rather than your web host. Amazon S3 is very reliable, very fast, and very inexpensive. For example, I have several GB of files stored on my S3 account and my last monthly bill from Amazon was just over $2!

Another advantage is that visitors to your site who access your media are not using your web host’s resources and bandwidth to access the media. You gain the advantage of Amazon S3’s speed and bandwidth and avoid using your quota on your web hosting account.

Another option is Dropbox which is free for the first 2GB. Dropbox is a good option if you don’t have more than 2GB of data to store and if you don’t care that people can pass the links around. There are ways to protect S3 links so that people have to come to your site to access them.

John Sawyer

Like this post?  Sign up below to be notified when new posts are published:

johnsmith@example.com
John

Share this post:

Share on TwitterShare on FacebookShare on LinkedIn

Filed Under: Media Library, WordPress Tagged With: amazon s3, dropbox, file upload, ftp, media library, wordpress

Select Module

Comments

  1. Carol Robin says

    May 22, 2011 at 7:09 pm

    I had the same problem – and John had the solution! Thanks John for always making things feel possible – especially when they feel impossible!

    • John says

      May 23, 2011 at 2:25 pm

      Thanks, Carol, I appreciate the kind words.

  2. Ivan Pallarés says

    August 21, 2012 at 11:30 am

    I am trying this solution but files uploaded by FTP are not recognized by Media Library straight away (I need media files available in Media Library so it is easier for my customers to embed contents).

    I have read about a plugin to sort that out. I will let you know when I test it.

    Do you have any other suggestion on that?

    Thanks!!

    • John says

      August 21, 2012 at 8:52 pm

      Hi, Ivan,

      You are correct. By using FTP, you do lose some of the functionality of the Media Library. It becomes a trade-off between using large files and using the Media Library if the web host will not allow files over a certain size to be uploaded. In other words, in order to continue to use the Media Library, you have to keep file sizes within the limits the web host allows. In order to use larger files, you must train your customers to embed links rather than using the Media Library.

      I do not know of a plugin that will allow you to do both, although there may very well be at least one available. If you do find one and it works satisfactorily, I would love to hear about it.

      Good luck!

      John

Recent Posts

  • Protect Yourself From Router Exploit
  • Is GDPR Compliance The Problem?
  • Warning! WordPress 4.9.6 Is Coming
  • MalwareBytes Update Issue
  • Google Issues New HTTPS Guidelines

Find Your Domain

Find a domain starting at $0.48

powered by Namecheap

Reach new audiences and grow your following

Privacy Policy | Terms of Use

Copyright © 2007-2022 by Chon Resources – All Rights Reserved Worldwide

We use cookies for various purposes including analytics and personalized marketing. By continuing to use the service, you agree to our use of cookies. - Privacy Policy
Protected by Patchstack