Re: [whatwg/fetch] Clarify Body package data algorithm with multipart/form-data MIME type (#424)

eehakkin commented on this pull request.



> +    <p>Parse <var>bytes</var>, using the value of the `<code>boundary</code>` parameter from
+    <var>MIME type</var> and <a>utf-8</a> as encoding, per the rules set forth in
+    <cite>Returning Values from Forms: multipart/form-data</cite>.
+    [[!RFC7578]]</p>
+
+    <p>Each part whose `<code>Content-Disposition</code>` header contains
+    a `<code>filename</code>` parameter must be parsed into an <a>entry</a>
+    whose value is a {{File}} whose content is the content of the part. The {{File/name}} attribute
+    of the {{File}} must have the value of the `<code>filename</code>` parameter of the part.
+    The {{Blob/type}} attribute of the {{File}} must have the value of
+    the `<code>Content-Type</code>` header of the part if the part has such header or
+    `<code>text/plain</code>` (the default defined by [[!RFC7578]] section 4.4) otherwise.</p>
+
+    <p>Each part whose `<code>Content-Disposition</code>` header does not contain
+    a `<code>filename</code>` parameter must be parsed into an <a>entry</a>
+    whose value is a {{USVString}} whose content is the <a>utf-8</a> decoded content of the part.

Done.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/424

Received on Friday, 9 December 2016 23:08:09 UTC