Handling IFormFile #995
sechabamot
started this conversation in
General
Replies: 2 comments
-
Maybe a little late to the party but this works for me. Below the implementation of the endpoint, instantiating a command holding a stream the file contents.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am interested in finding out how you would handle file storage while still maintaining this lovely clean architecture. Mainly not referencing IFormFile in the Application layer.
My first idea was to wrap IFormFile behavior into the Application layer, which seemed like a bit much. From my own research, it seems the approach is to handle the file in the controller.
Would love to hear your thoughts. @jasontaylordev
Beta Was this translation helpful? Give feedback.
All reactions