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

同じ名前のドキュメントを送信するとエラーが発生し、フォーム フィールドからファイルが失われる

written-by

Justin Mann

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

問題

  • Documents and Media ポートレットで、別のファイルと同じタイトルのファイルを送信すると、エラーが発生して送信できなくなります。 これが発生すると、ページがリロードされるため、フォーム フィールドからファイルが失われます。 セキュリティ上の理由から、送信が失敗したときに、タイプ ファイルの入力をプログラムで再設定することはできません。 これは、セキュリティ上の理由からブラウザに存在する技術的な制限です。

Environment

  • Liferay DXP 7.0
  • Liferay DXP 7.1
  • Liferay DXP 7.2

解決策

  • ドロップダウン エラー メッセージの 1 つは、タイトルの名前を変更するだけでなく、アップロードするファイルを再度選択するようユーザーに促します。 これが完了すると、ファイルを公開でき、プレビューが生成されます。
  • ユーザーがファイルを再選択せずに再度送信すると、Liferay は、ドキュメントの名前を持つ 0 KB のファイルをプレースホルダーとして生成します。
did-this-article-resolve-your-issue

legacy-knowledge-base