WordPress的 为用户推出了一个新版本WordPress 3.5。
WordPress的版本具有很多更改’的仪表板界面设计,就像您可以看到的按钮在胶囊设计中较早,但现在在此版本中,它们被设计为圆形矩形。
WordPress的 3.5中的主要更新是它’s 媒体 Uploads。插入 媒体 is easier, you just have to click on the 媒体 icon and select the 媒体 档案 of your computer by ticking the checkbox, same as the printer, when you print many images.
But, in this WordPress的 version, If you will try to change your 媒体 uploads folder then what?
Earlier, when you were needed to change 媒体 uploads folder, you just have to navigate to 设定值>> 媒体和there are fields available to choose the 媒体 file location but now it is not available, See Below image.

现在,如果要更改媒体上载银河官网夹,则只需向位于网站上的wp-config.php银河官网中添加一小段代码’的根目录。如果要将上传目录设置为wp-content / 档案,则需要在wp-config.php中添加以下代码:
and if  you want to set a custom folder, say http://www.yourdomain.com/files/ then you need to add this code to your wp-config.php file:
但是,WordPress没有’t删除选项“将我的上传整理成一个月又一年” based folder so, you can still choose whether you want your WordPress的 媒体 folder to be arranged by month-and-year or not.
从子域托管媒体上载
Hosting 档案 from sub-domain is always a wise choice as the images, videos load parallel on visitors’浏览器并改善您的 网站’s loading time 剧烈地。
So if you are thinking to set up a sub-domain to host all your 媒体 uploads and you didn’将您的WordPress版本升级到3.5,那么您很幸运。
您只需要遵循以下简单步骤:

第1步: 登录到WordPress管理面板后,转到“设置”>> 媒体.
在 “Uploading Files”有两个领域,“将上传内容存储在此银河官网夹中” and “Full URL path to 档案”
第2步: 在 “将上传内容存储在此银河官网夹中” put your folder’位于您网站上的名字’的根。就像,如果您创建了子域名cdn.yourdomain.com,那么您会发现“cdn”银河官网夹位于public_html, 网站‘s root folder. So, put 光盘 at that field.
第三步: 在Â “Full URL path to 档案” , put your sub-domains full URL address along with http://. So you need to put http://cdn.yourdomain.com at the second field.
Now, even if you upgrade your WordPress的 to 3.5 then the 媒体 will still be hosted from your sub-domain. But, if you have upgraded to WordPress的 3.5 like that of mine, then you have to downgrade to the previous version of WordPress的.
要还原两个选项,请访问数据库并转到表wp_options
在这些字段中插入任何值:
upload_url_path
upload_path
更改后,请转到admin并在原始字段中设置正确的值。
感谢Aldo Anizio。
嘿哥们儿!您在这里犯了一个错误。添加名为的银河官网夹“media”如您在文章中所写,代码将是define(‘UPLOADS’, ‘wp-content/’.’media’);而不是define(‘UPLOADS’, ‘wp-content/’.’files’);和下一个相同。
感谢您的更正ðŸ™,
WordPress的将我的上传内容整理到基于月份和年份的银河官网夹中
I need to upload my 档案 into Year/Month/Day Folders
Because my hosting Providers not supporting Each Folder Contain not more than 1024 档案.
请解决谢谢。
您应该尝试联系您的服务器。
Thanx 索拉卜分享这些有用的信息
感谢您分享你的知识
感谢您的有用信息