multipart/form-data を指定した POST リクエストで、ファイルをダウンロードします。
written-by
Solyom Nagy-Györkös
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
問題
multipart/form-data と適切なサイズの添付ファイルを指定した POST リクエストで、ファイルを一時ディスクフォルダにダウンロードします。
この動作は、Liferayという製品ではなく、tomcat特有のものです。ここでは、tomcat の /temp/ フォルダについて簡単に説明します: Tomcatのtempディレクトリは、コンパイルされたJSPページ、セッションデータ、アップロードされたファイルなど、Tomcatが実行中に生成する一時ファイルを保存するために使用されます。 これらのファイルは、Tomcatがシャットダウンされると自動的に削除されます。 The location of the temp directory can be configured in Tomcat's server.xml configuration file using the "tempdir" attribute of the <Host> element.