As Plug.Upload is returning a struct do_filter failed with (Protocol.UndefinedError) protocol Enumerable not implemented for %Plug.Upload{content_type: "text/csv", filename: "test.csv", path: "/path/to/tempfile"} if errors occur for a file upload request.
This pull request add general support for structs, which covers file uploads as well.
As
Plug.Upload
is returning a structdo_filter
failed with(Protocol.UndefinedError) protocol Enumerable not implemented for %Plug.Upload{content_type: "text/csv", filename: "test.csv", path: "/path/to/tempfile"}
if errors occur for a file upload request.This pull request add general support for structs, which covers file uploads as well.