public function checkMinsize(\Phalcon\Http\Request\File $file, $value)
    {
        // conversion to the desired format

        if (is_array($value) === true) {
            $value = $value[key($value)];
        }

        // check

        if ($file->getSize() < (int) $value) {

            $this->errors[] = sprintf(Message::get('INVALID_MIN_SIZE'), $file->getName(), Format::bytes($value));
            return false;
        }

        return true;
    }