Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CreateFormField (0.09 sec)

  1. cmd/post-policy_test.go

    	}
    	// Set the File formData but don't if we want send an incomplete multipart request
    	if !corruptedMultipart {
    		var writer io.Writer
    		var err error
    		if noFilename {
    			writer, err = w.CreateFormField("file")
    		} else {
    			writer, err = w.CreateFormFile("file", "upload.txt")
    		}
    		if err != nil {
    			// return nil, err
    			return nil, err
    		}
    		writer.Write(objData)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 30.2K bytes
    - Viewed (0)
Back to top