一次只能传一个文件,需在main.go同级目录中建一个upload文件夹main.gopackagemainimport("fmt""io""net/http""os")const(upload_pathstring="./upload/"…