Skip to content

Commit

Permalink
replace 'a' with 'file_uplaod' in FileHeader tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Umang01-hash committed Sep 17, 2024
1 parent 7ff8ba3 commit a6a1e92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/references/context/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ parts of the request.

Compressed file.Zip `file:"upload"`

FileHeader *multipart.FileHeader `file:"a"`
FileHeader *multipart.FileHeader `file:"file_upload"`
}
```

Expand Down
2 changes: 1 addition & 1 deletion examples/using-file-bind/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ it to the fields of the struct. GoFr currently supports zip file type and also b
type Data struct {
Compressed file.Zip `file:"upload"`

FileHeader *multipart.FileHeader `file:"a"`
FileHeader *multipart.FileHeader `file:"file_upload"`
}

func Handler (c *gofr.Context) (interface{}, error) {
Expand Down
2 changes: 1 addition & 1 deletion examples/using-file-bind/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type Data struct {

// The FileHeader determines the generic file format that we can get
// from the multipart form that gets parsed by the incoming HTTP request
FileHeader *multipart.FileHeader `file:"a"`
FileHeader *multipart.FileHeader `file:"file_upload"`
}

func UploadHandler(c *gofr.Context) (interface{}, error) {
Expand Down

0 comments on commit a6a1e92

Please sign in to comment.