Closed
Description
Hello
I'm upgrading my Phoenix to 1.4 and it is raising error in controllers that I use %Plug.Upload{}
:
** (Protocol.UndefinedError) protocol Jason.Encoder not implemented for %Plug.Upload{content_type: "jpg", filename: "bar.jpg", path: "/foo/bar.jpg"}, Jason.Encoder protocol must always be explicitly implemented.
Shouldn't it be implemented by the plug or we should define it in my app using Protocol.derive(Jason.Encoder, Plug.Upload)
?
Metadata
Metadata
Assignees
Labels
No labels