You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Content type <code>multipart/form-data</code> is commonly used to transfer files to a server or to send multiple types of content in the request payload. If you specify a content type of <code>'multipart/form-data'</code>:</p>
930
930
<ul>
931
931
<li><code>Params</code> must be a namespace with named elements.</li>
932
-
<li>Each element in <code>Params</code> consists of the data for the element optionally followed by a content type for the element.</li>
932
+
<li>Each element in <code>Params</code> consists of up to 3 elements:<ul>
933
+
<li>content - the data for the element, if sending a file this is the file name (see the section below) </li>
934
+
<li>type - the MIME content-type type for the element</li>
935
+
<li>filename - if content is to be saved as a file, this is the filename for the content</li>
936
+
</ul>
937
+
</li>
933
938
<li>To send a file, prefix the file name with either:<ul>
934
939
<li><code>@</code> to upload the file's content and its name</li>
935
940
<li><code><</code> to upload just the file's content</li>
<p>Content type <code>multipart/form-data</code> is commonly used to transfer files to a server or to send multiple types of content in the request payload. If you specify a content type of <code>'multipart/form-data'</code>:</p>
3983
3983
<ul>
3984
3984
<li><code>Params</code> must be a namespace with named elements.</li>
3985
-
<li>Each element in <code>Params</code> consists of the data for the element optionally followed by a content type for the element.</li>
3985
+
<li>Each element in <code>Params</code> consists of up to 3 elements:<ul>
3986
+
<li>content - the data for the element, if sending a file this is the file name (see the section below) </li>
3987
+
<li>type - the MIME content-type type for the element</li>
3988
+
<li>filename - if content is to be saved as a file, this is the filename for the content</li>
3989
+
</ul>
3990
+
</li>
3986
3991
<li>To send a file, prefix the file name with either:<ul>
3987
3992
<li><code>@</code> to upload the file's content and its name</li>
3988
3993
<li><code><</code> to upload just the file's content</li>
0 commit comments