Closed aurorazl closed 5 days ago
I received a file through gin's c.FormFile. file, err := c.FormFile("image") How can i send it to other server through grequests? Thanks.
Can grequests post a file from []byte or string?
Solved it! []grequests.FileUpload{{FileName: "image",FileContents: ioutil.NopCloser(bytes.NewReader(image))}
I received a file through gin's c.FormFile. file, err := c.FormFile("image") How can i send it to other server through grequests? Thanks.