Unable to send a `Ash.Type.File` as argument to action using `AshPhoenix.Form`
When trying to send a
Ash.Type.File
struct as an argument to an update
action, AshPhoenix.Form
is failing on validation.
Worth nothing that sending the file argument as :override_params
in AshPhoenix.Form.submit
does bypass this and work correctly, as does calling the action directly.
AshAdmin also exhibits this behaviour.
Am I doing something wrong or is this a bug? The action looks like this:
4 Replies
Stacktrace:
🤔 something is strange there for sure
It seems like you're passing an individual file when a map of params is expected though
yeah it was working some time ago I remember, and like I said above, same problem happens in AshAdmin
🤔 interesting. Can you create a reproduction project and open an issue?