4.3. 1つのフォームフィールドに対する複数のファイル
4.3. Multiple Files for One Form Field
🇬🇧 英文原文
The form data for a form field might include multiple files. [RFC2388] suggested that multiple files for a single form field be transmitted using a nested "multipart/mixed" part. This usage is deprecated.
To match widely deployed implementations, multiple files MUST be sent by supplying each file in a separate part but all with the same "name" parameter.
Receiving applications intended for wide applicability (e.g., multipart/form-data parsing libraries) SHOULD also support the older method of supplying multiple files.
🇯🇵 日本語訳
フォームフィールドのフォームデータには、複数のファイルが含まれる場合がある。[RFC2388]は、単一のフォームフィールドに対する複数のファイルを、ネストされた「multipart/mixed」パートを使用して送信することを提案していた。この使用法は非推奨である。
広く展開されている実装に一致させるため、複数のファイルは、各ファイルを個別のパートで提供することによって送信する必要があるが(MUST)、すべて同じ「name」パラメータを使用する。
広範な適用を目的とした受信アプリケーション(たとえば、multipart/form-data解析ライブラリ)は、複数のファイルを提供する古い方法もサポートすべきである(SHOULD)。