legacy-knowledge-base
公開されました Jul. 2, 2025

dl.file.extensions」プロパティを設定すると、すべてのドキュメントおよびメディアファイルのアップロードができなくなる。

written-by

Liferay Support

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

この記事では、 dl.file.extensions portal propertyを設定すると、multiple filder uploaderの使用を含め、すべてのDocuments and Mediaファイルのアップロードができなくなる問題について説明しています。

再現までの手順

Liferay Home ディレクトリにある portal-ext.properties に以下を追加します:

dl.file.extensions=.bmp,.css,.doc,.docx,.dot,.eot,.flv,.gif,.htm,.html,.jpg,.jrxml,.js,.map,.mp3,.mp4,.odb,.odf,.odg,.odp,.ods,.odt,.pdf,.png,.ppt,.pptx,.rtf,.svg,.swf,.sxc,.sxi,.sxw,.tiff,.ttf,.txt,.vsd,.woff,.xls,.xlsx,.xml
  1. Liferay Portalを起動し、Adminとしてログインします。
  2. Admin > Site Administration > Content > Documents and Mediaへ移動します。
  3. クリック 追加 > 複数文書 または 追加 > 基本文書
  4. 手順1で追加したプロパティに記載されている拡張子を持つファイルの追加を試行する
  5. アップロードが拒否され、「 有効な拡張子を持つ値を入力してください 」というメッセージが表示されることに注意してください。

    (.bmp,.css,.doc,.docx,.dot,.eot,.flv,.gif,.htm,.html,.jpg,.jrxml,.js,.map,.mp3,.mp4,.odb,.odf,.odg,.odp,.ods,.odt,.pdf,*.png,.ppt,.pptx,.rtf,.svg,.swf,.sxc,.sxi,.sxw,.tiff,.ttf,.txt,.vsd,.woff,.xls,.xlsx,.xml)."

解決策

この修正は、Liferay Help Centerから Portal 6.2 SP9 に含まれています。

did-this-article-resolve-your-issue

legacy-knowledge-base