Skip to content
ajitbohra edited this page Dec 1, 2014 · 9 revisions

A file input field. Upload files, or select from the media library.

The value saved is the attachment id.

file

Args

Requried Args

  • id (string) (required)
  • name (string) (required) Field display name. Used as field label.
  • type 'file' (required)

Field Specific Args

Optional Generic Args

See Optional Generic Args

Example Usage

array( 
	'id'   => 'example-field-file', 
	'name' => 'A file input', 
	'type' => 'file', 
),