-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#56 get content of file from request
- Loading branch information
Reindert Vetter
committed
Sep 22, 2020
1 parent
9859395
commit 3244fb1
Showing
1 changed file
with
0 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
package controller | ||
|
||
import ( | ||
"fmt" | ||
"github.com/lanvard/contract/inter" | ||
"github.com/lanvard/routing/outcome" | ||
) | ||
|
||
func Homepage(request inter.Request) inter.Response { | ||
source := request.Source() | ||
err := source.ParseForm() | ||
if err != nil { | ||
panic(err) | ||
} | ||
fmt.Println(source.FormFile("the_key")) | ||
return outcome.Html("ok") | ||
} |