# Class: Image

## jala.Form.Component.Image(name)

Subclass of jala.Form.Component.File which renders a file upload and validates uploaded files as images.

## Constructor

#### new Image(name)

Creates a new Image component instance

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | String | Name of the component, used as name of the html controls.

Source:
  - jala/code/Form.js, line 2251

##### Returns:

A newly created Image component

### Methods

#### checkRequirements(reqData)

Validates an image upload by making sure it's there (if REQUIRE is set), checking the file size, the content type and by trying to construct an image. If the file is an image, width and height limitations set by require are checked.

##### Parameters:

Name | Type | Description
--- | --- | ---
`reqData` | Object | request data

Source:
  - jala/code/Form.js, line 2279