View definition

(*Context).GetPostForm

Defined in github.com/gin-gonic/gin/context.go

Description

GetPostForm is like PostForm(key). It returns the specified key from a POST urlencoded form or multipart form when it exists `(value, true)` (even when the value is an empty string), otherwise it returns ("", false). For example, during a PATCH request to update the user's email:

[email protected]  -->  ("[email protected]", true) := GetPostForm("email") // set email to "[email protected]"
email=  			  	-->  ("", true) := GetPostForm("email") // set email to ""
					 	-->  ("", false) := GetPostForm("email") // do nothing with email

GetPostForm is referenced in 3 repositories

github.com/gin-gonic/gin github.com/silenceper/dcmp

...