Skip to content

Commit 719e8b3

Browse files
committed
BUG/MEDIUM: runtime-maps: fix file upload name
In spec parameter is named as "fileUpload", but in dataplaneapi it is refered with name "file". Changing "file" to "fileUpload" fixes this problem.
1 parent 0d226c3 commit 719e8b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handlers/map.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type MapsCreateRuntimeMapHandlerImpl struct {
3131
}
3232

3333
func (h *MapsCreateRuntimeMapHandlerImpl) Handle(params maps.CreateRuntimeMapParams, principal interface{}) middleware.Responder {
34-
file, header, err := params.HTTPRequest.FormFile("file")
34+
file, header, err := params.HTTPRequest.FormFile("fileUpload")
3535
if err != nil {
3636
return maps.NewCreateRuntimeMapBadRequest()
3737
}

0 commit comments

Comments
 (0)