- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for CreateFormFile (0.09 sec)
-
internal/config/subnet/subnet.go
return "", errors.New("Deployment is not registered with SUBNET. Please register the deployment via 'mc license register ALIAS'") } var body bytes.Buffer writer := multipart.NewWriter(&body) part, e := writer.CreateFormFile("file", filename) if e != nil { return "", e } if _, e = part.Write(payload); e != nil { return "", e } writer.Close() r, e := http.NewRequest(http.MethodPost, reqURL, &body)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Feb 27 16:35:36 UTC 2023 - 2.9K bytes - Viewed (0) -
cmd/post-policy_test.go
var buf bytes.Buffer w := multipart.NewWriter(&buf) // Set the normal formData for k, v := range formData { w.WriteField(k, v) } // Set the File formData writer, err := w.CreateFormFile("file", "upload.txt") if err != nil { // return nil, err return nil, err } writer.Write([]byte("hello world")) // Close before creating the new request. w.Close()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 30.2K bytes - Viewed (0) -
api/go1.txt
pkg mime/multipart, method (*Writer) Boundary() string pkg mime/multipart, method (*Writer) Close() error pkg mime/multipart, method (*Writer) CreateFormField(string) (io.Writer, error) pkg mime/multipart, method (*Writer) CreateFormFile(string, string) (io.Writer, error) pkg mime/multipart, method (*Writer) CreatePart(textproto.MIMEHeader) (io.Writer, error) pkg mime/multipart, method (*Writer) FormDataContentType() string
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)