setMaxFileSize (1000000) will limit the size on the client side, i.e. a special tag MAX_FILE_SIZE will be created in html, for example:
<input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
However, this is not so safe because it is easy to modify html. In any case, if you do not specify setMaxFileSize, ZF will automatically create it with a value equal to the upload_max_filesize value in php.ini.
AddValidator , html. .