2013-06-16 03:04
浏览 609


When a user uploads a file, using r.FormFile("file") you get a multipart.File, a multipart.FileHeader and an error.

My question is how to just obtain information about the uploaded file for example, it's size, and if it's an image it's demensions, and so on and so forth.

I have literally got no idea on where to start so any help would be great.

图片转代码服务由CSDN问答提供 功能建议

当用户使用r.FormFile(“ file”)上传文件时,会得到一个multipart.File, multipart.FileHeader和一个错误。</ p>

我的问题是如何获取有关上载文件的信息,例如,文件的大小,如果是图像,则是尺寸,等等。 。</ p>

我真的不知道从哪里开始,所以任何帮助都会很棒。</ p> </ div>

4条回答 默认 最新

相关推荐 更多相似问题