Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ErrMissingFile (0.15 sec)

  1. src/net/http/request.go

    	"golang.org/x/net/http/httpguts"
    	"golang.org/x/net/idna"
    )
    
    const (
    	defaultMaxMemory = 32 << 20 // 32 MB
    )
    
    // ErrMissingFile is returned by FormFile when the provided file field name
    // is either not present in the request or not a file field.
    var ErrMissingFile = errors.New("http: no such file")
    
    // ProtocolError represents an HTTP protocol error.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/net/http/request_test.go

    	if f != nil {
    		t.Errorf("FormFile file = %v, want nil", f)
    	}
    	if fh != nil {
    		t.Errorf("FormFile file header = %v, want nil", fh)
    	}
    	if err != ErrMissingFile {
    		t.Errorf("FormFile err = %q, want ErrMissingFile", err)
    	}
    }
    
    func newTestMultipartRequest(t *testing.T) *Request {
    	b := strings.NewReader(strings.ReplaceAll(message, "\n", "\r\n"))
    	req, err := NewRequest("POST", "/", b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
Back to top