|
|
@ -518,8 +518,7 @@ func extractHTTPFormValues(reader *multipart.Reader) (io.Reader, map[string]stri |
|
|
|
// signature policy in multipart/form-data
|
|
|
|
// signature policy in multipart/form-data
|
|
|
|
func (api storageAPI) PostPolicyBucketHandler(w http.ResponseWriter, r *http.Request) { |
|
|
|
func (api storageAPI) PostPolicyBucketHandler(w http.ResponseWriter, r *http.Request) { |
|
|
|
// Here the parameter is the size of the form data that should
|
|
|
|
// Here the parameter is the size of the form data that should
|
|
|
|
// be loaded in memory, the remaining being put in temporary
|
|
|
|
// be loaded in memory, the remaining being put in temporary files.
|
|
|
|
// files
|
|
|
|
|
|
|
|
reader, e := r.MultipartReader() |
|
|
|
reader, e := r.MultipartReader() |
|
|
|
if e != nil { |
|
|
|
if e != nil { |
|
|
|
errorIf(probe.NewError(e), "Unable to initialize multipart reader.", nil) |
|
|
|
errorIf(probe.NewError(e), "Unable to initialize multipart reader.", nil) |
|
|
|