我正在尝试上传一张图片,调整它的大小,然后将它上传到AmazonS3,但是我正在努力弄清楚如何将图片从multipart.File转换为image.Imagepackagecontrollersimport("github.com/gin-gonic/gin""github.com/mitchellh/goamz/aws""github.com/mitchellh/goamz/s3""github.com/nfnt/resize"_"image/jpeg""log""os""strconv")typeResizeControllerstruct{}funcNewResizeContro