View Source GlificWeb.Resolvers.Media (Glific v5.1.6)

Resolver to deal with file uploads, which we send directly to GCS

Link to this section Summary

Functions

Upload a file given its extension

Upload a blob encoded in base64 given its extension

Link to this section Functions

@spec upload(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Upload a file given its extension

Link to this function

upload_blob(_, map1, map2)

View Source
@spec upload_blob(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Upload a blob encoded in base64 given its extension