Upload files larger than 2MB in Wordpress

I realize that the MB limit is placed in the config settings of wordpress and can be increased there, but I'd rather just create an additional directory on the host where files are uploaded.  I'd still like to upload function to be available within the Wordpress Admin pages, but the upload to go to the created folder.  Particularly, I'd like to add a box on the Post Edit screen to add the upload.  This is primarily for uploading the MP3 of a podcast for instance.

I know I'll need to build a custom function to make this happen and point to the correct directory, but wanted to be sure it was possible first.

Is that even possible?
Who is Participating?
Jason C. LevineNo oneCommented:
It's actually not a WordPress setting but a PHP one that WordPress reads and echoes back.

However. Yes, it is possible to hook the upload function and send it whereever you want based on whatever triggers you can access when the hook fires.

The Advanced Custom Fields plugin is really good for this.
For larger files you have also need to verify php.ini file, your hosting company may have set different limits.
Some hosting company allows user to create their own php.ini you should check with them first.

Some settings that need to be changed:

For more info check:

For the upload function you can use something similare to this:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.