Handling file uploads in AshGraphql and AshJsonApi

What's the current/planned support for handling of the :binary type in AshGraphql and AshJsonApi? I've been dealing with binary uploads using a more OOB approach, but would be curious to evaluate other options.
3 Replies
ZachDaniel
ZachDaniel3y ago
Honestly, I haven't had to do it yet, so I haven't laid down any patterns for it. There is a :binary type supported in ash core, but you'll pretty much need to roll your own. I'd love to have either an extension or a type for file uploads that can help in some way with uploads in every format (like phoenix liveview, graphql, liveview)
\ ឵឵឵
\ ឵឵឵OP3y ago
Certainly could imagine an extension that would support some of the common cloud providers.
jart
jart3y ago
Oh man that’d be fun to write.

Did you find this page helpful?