clonefish logo

file upload validation GIF JPG BMP SWF CMYK RGB PNG required required minimum size bytes maximum size bytes disabled enabled

file validation

Possible parameters:
'validation' => Array(
  Array( 
    'type'     => 'file',
    'types'    => Array('gif','jpgrgb','png','bmp','swf'),
                  // feel free to finetune jpg validation:
                  //   - jpgrgb for JPEGs with RGB channel
                  //   - jpgcmyk for JPEGs with CMYK channel
                  //     (some browsers (IE) have problems with 
                  //      displaying CMYK JPGs, best to avoid!)
                  //   - jpg for both jpgrgb and jpgcmyk

    'minimum'  => 123,
    'maximum'  => 4900, // default value is: ini_get('upload_max_filesize')
    'required' => 1 | 0 // default is 1
  )
)