Latest Tech and Tips

How to Change the Default Media Upload Location in WordPress 3.5

0

The brand-new Media Uploader in WordPress 3.5 is most likely the essential change of this launch. Another essential yet much less spoken about change is the loss of the alternative to change the upload directory site course fromSettings The factor for eliminating this alternative from the UI was that it is not as typically utilized as various other alternatives. It likewise has the capacity of wreaking havoc if the customer mistakenly transforms it. Removing it will certainly streamline the UI with simply a check box for year/month folder company. In this message we will certainly reveal you how to change the default media upload locationin WordPress 3.5

Note: This tutorial is except novices. Use it just if you recognize what you are doing.

In order to change the default media upload location, you require to edit the wp-config. php data situated in the origin directory site of your WordPress setup. If you desire upload directory site to be wp-content/files after that you will certainly require to area the complying with code in wp-config. php

specify( 'UPLOADS', 'wp-content/'.' documents' );.

If you desire the upload directory site to be outdoors wp-content, like http://www.example.com/files/ after that you require to established upload course in wp-config. php such as this:

specify( 'UPLOADS', ".' documents' );.

Remember you can still pick whether you desire uploaded documents to be arranged in month/year folders in Settings”Media

Media Settings in WordPress 3.5

Hopefully you located this post to be useful. If you have any kind of concerns, do not hesitate to leave a remark listed below.

Source:

Function Reference /wp_upload_dir – WordPress Codex

WordPress Trac #21720

.