 
   @versions [:original, :poster]
 
+  @acl :public_read
+
   # To add a thumbnail version:
   # @versions [:original, :thumb]
 

  def filename(:poster, _params) do
    :poster
  end
  def filename(version, {_, %{file_name: file_name}}) do
    Logger.warn "version: #{inspect version}"
    String.replace(file_name, ~r(\.[^/.]+$), "")
  end
  def filename(version, %{file_name: file_name} = params) do
    Logger.warn "params: #{inspect params}"
    file_name
  end


    # # "/priv/uploads"
  end
  def storage_dir(scope) do
    path = "priv/static/uploads/#{scope.message_id}"
    if UcxChat.env == :prod do
      Path.join(Application.app_dir(:ucx_chat), path)
    else
      path
    end
  end

  # Provide a default URL if there hasn't been a file uploaded
