Tesla.Multipart.add_file_content

You're seeing just the function add_file_content, go back to Tesla.Multipart module for more information.
Link to this function

add_file_content(mp, data, filename, opts \\ [])

View Source

Specs

add_file_content(t(), part_value(), String.t(), Keyword.t()) :: t()

Add a file part with value.

Same of add_file/3 but the file content is read from data input argument.

Options

  • :name - name of form param
  • :headers - additional headers