-
What is the best way to have a service accept a file as a parameter? The equivalent thing I am trying to do in a typical golang web app would be: https://tutorialedge.net/golang/go-file-upload-tutorial/ |
Beta Was this translation helpful? Give feedback.
Answered by
eandre
Jul 14, 2021
Replies: 1 comment 3 replies
-
Hey @thebyrd, great question. The best way to do things like this is by dropping down an abstraction level and using raw endpoints: //encore:api public raw
func MyHandler(w http.ResponseWriter, req *http.Request) { /* ... */ } From there on the TutorialEdge code should work completely unmodified. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
eandre
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @thebyrd, great question. The best way to do things like this is by dropping down an abstraction level and using raw endpoints:
From there on the TutorialEdge code should work completely unmodified.