<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《使用multipart/form-data实现文件的上传与下载》的评论</title>
	<atom:link href="http://tonybai.com/2021/01/16/upload-and-download-file-using-multipart-form-over-http/feed/" rel="self" type="application/rss+xml" />
	<link>https://tonybai.com/2021/01/16/upload-and-download-file-using-multipart-form-over-http/</link>
	<description>一个程序员的心路历程</description>
	<lastBuildDate>Wed, 25 Mar 2026 09:21:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>作者：bigwhite</title>
		<link>https://tonybai.com/2021/01/16/upload-and-download-file-using-multipart-form-over-http/#comment-7535</link>
		<dc:creator>bigwhite</dc:creator>
		<pubDate>Mon, 01 Feb 2021 06:39:16 +0000</pubDate>
		<guid isPermaLink="false">https://tonybai.com/?p=3080#comment-7535</guid>
		<description>现在go标准库的ParseMultipartForm依赖这个key，如果填成一样，或不填，都会导致问题。</description>
		<content:encoded><![CDATA[<p>现在go标准库的ParseMultipartForm依赖这个key，如果填成一样，或不填，都会导致问题。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：1</title>
		<link>https://tonybai.com/2021/01/16/upload-and-download-file-using-multipart-form-over-http/#comment-7534</link>
		<dc:creator>1</dc:creator>
		<pubDate>Sun, 31 Jan 2021 15:48:25 +0000</pubDate>
		<guid isPermaLink="false">https://tonybai.com/?p=3080#comment-7534</guid>
		<description>文章中的代码
r.ParseMultipartForm(100)
    mForm := r.MultipartForm

    for k, _ := range mForm.File {
        // k is the key of file part
        file, fileHeader, err := r.FormFile(k)

遇到傻鸟前端给出下面这样的多个同名字段




就只能接收到其中一个文件。</description>
		<content:encoded><![CDATA[<p>文章中的代码<br />
r.ParseMultipartForm(100)<br />
    mForm := r.MultipartForm</p>
<p>    for k, _ := range mForm.File {<br />
        // k is the key of file part<br />
        file, fileHeader, err := r.FormFile(k)</p>
<p>遇到傻鸟前端给出下面这样的多个同名字段</p>
<p>就只能接收到其中一个文件。</p>
]]></content:encoded>
	</item>
</channel>
</rss>
