Forráskód Böngészése

fix: ImageUpload 接口报错 'media data missing hint:' (#832)

litterGuy 1 éve
szülő
commit
23bb10b0c9
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      util/http.go

+ 1 - 0
util/http.go

@@ -166,6 +166,7 @@ func PostFile(fieldName, filePath, uri string) ([]byte, error) {
 			IsFile:    true,
 			Fieldname: fieldName,
 			FilePath:  filePath,
+			Filename:  filePath,
 		},
 	}
 	return PostMultipartForm(fields, uri)