WordPress 增加允许上传的附件格式 Attachment format to WordPress

Attachment format to WordPress
WordPress 增加允许上传的附件格式

There are dozens of file formats supported by WordPress. Basically, common file formats are supported. However, there are still a few WordPress that do not support the upload attachment format. Among them, there is the commonly used. Rar compression package format. There are two ways to add the attachment format of WordPress: modify the file or use the blog plug-in. The blog bar will introduce how to modify the file to add the attachment format that WordPress allows to upload.

How to modify the file:
Add the functions.php Download the file to the local;
Open the file with a text tool and find the code 1 2 ‘tar’ = >’application / x-tar ‘,’zip’ = >’application / zip ‘,
Add code: 1’rar ‘= >’application / rar’,
Save the file, then upload it to the WP includes / directory and overlay the original funtions.php File is OK.

Reminder:
other attachment formats can refer to the above method, but we need to pay attention to the type of attachment. For example, 3gb file will be included in the code form of MP4.

Es gibt Dutzende von Dateiformaten, die von WordPress unterstützt werden.Grundsätzlich werden gängige Dateiformate unterstützt.Allerdings gibt es noch ein paar WordPress, die das Upload-Attachment-Format nicht unterstützen.Unter ihnen gibt es die gebräuchlichen.Rar Kompressionspaket Format.Es gibt zwei Möglichkeiten, das Attachment-Format von WordPress hinzuzufügen: die Datei ändern oder den Blog-Plug-in verwenden.In der Blogleiste wird vorgestellt, wie man die Datei ändert, um das Attachment-Format hinzuzufügen, das WordPress erlaubt, hochzuladen.

Wie man die Datei ändert:
Fügen Sie dieFunktionen.phpLaden Sie die Datei zum lokalen;
Öffnen Sie die Datei mit einem Textwerkzeug und finden Sie den Code 1 2’tar’= >’application / x-tar”zip’ = >’application / zip’,
Code hinzufügen: 1’rar = >’application /rar’,
Speichern Sie die Datei, dann laden Sie sie in das WP enthält / Verzeichnis und overlay das Originalfuntions.phpDatei ist OK.

Erinnerung:
andere Dateiformate können sich auf die obige Methode beziehen, aber wir müssen auf die Art der Anlage achten.Zum Beispiel wird die 3gb-Datei in die Codeform von MP4 aufgenommen.

WordPress добавляет формат вложений для загрузки
WordPress поддерживает загрузку нескольких десятков форматов файлов, которые поддерживаются в основном обычным форматом, но лишь немногие из них не поддерживают формат вложений для загрузки, который используется в стране. для увеличения загрузки вложений в формат WordPress есть два способа изменить файл или использовать модуль блога. блог описывает метод внесения изменений в файл, чтобы увеличить WordPress, что позволяет Загружать вложения в формат.

порядок изменения файла:
поместить под каталог Functions.php Загрузка файлов в локальные;
открыть файл с помощью текстового инструмента, чтобы найти код 1 2 ‘tar’ > ` application / x – tar ‘,’ zip ‘-‘ application / zip ‘,
Добавить код: 1 ‘rar’ = application / rar ‘,
сохранить файл, а затем загрузить в wp – includes / каталог и заменить его Futions.php достаточно бумаги.

напоминание:
другие форматы вложений можно отсылать к вышеприведенному методу, однако следует отметить тип вложения, например 3gb файл для участия в формате mp4.

WordPress 增加允许上传的附件格式

WordPress支持上传的文件格式有几十种,基本上常见的文件格式都支持,可其中还有极少部分wordpress不支持上传的附件格式,其中就有国人常用的.rar压缩包格式。增加WordPress上传附件的格式有两种方法,修改文件或用博客插件。博客吧将介绍修改文件实现增加WordPress允许上传的附件格式的方法。
修改文件的方法步骤:

  1. 把wp-includes/目录下的functions.php文件下载到本地;
  2. 用文本工具打开文件,找到代码1 2 ‘tar’ => ‘application/x-tar’, ‘zip’ => ‘application/zip’,
  3. 在其中添加代码:1’rar’ => ‘application/rar’,
  4. 保存文件,然后上传至wp-includes/目录下并覆盖原funtions.php文件即可。

提醒:其它附件格式均可参照上面的方法,但需要注意的是附件的类型,比如3gb文件就要参加mp4的代码形式了。

408 Views
分享你的喜爱
linwute
linwute

我要像梦一样自由,像大地一样宽容;
在艰辛放逐的路上,点亮生命的光芒;
我要像梦一样自由,像天空一样坚强;
在曲折蜿蜒的路上,体验生命的意义;

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注