Multipart.Part.file_field
You're seeing just the function
file_field
, go back to Multipart.Part module for more information.
Specs
Builds a form-data Part
with a streaming file body.
Takes the following Keyword
options in opts
:
filename
: controls the inclusion of thefilename="foo"
directive in thecontent-disposition
header. Defaults totrue
, which uses the filename from the path on disk. Pass in aString
to override this, or set tofalse
to disable this directive.content_type
: controls the inclusion of thecontent-type
header. Defaults totrue
which will useMIME.from_path/1
to detect the mime type of the file. Pass in aString
to override this, or set tofalse
to disable this header.