

& (($ext1 = ".pdf") || ($ext1 = ".doc") || ($ext1 = ". Changing Maximum Upload File Size via hPanel To modify file upload limitations in Hostinger’s hPanel, click Manage on the Hosting panel and look up PHP Configuration in the Advanced section. memorylimit You’ll want to make sure your script memory limit is set to a decent size, probably larger than either of the other two settings. The default value of this directive is On. The Key Settings fileuploads The value of the fileuploads directive should be set to On to allow file uploads.
uploadmaxfilesize This value sets the maximum size of an upload file.You can increase this limit up to what your filesystem and operating system allows. postmaxsize This setting controls the size of an HTTP post, and it needs to be set larger than the uploadmaxfilesize setting.

& (($ext = ".pdf") || ($ext = ".doc") || ($ext = ".docx")) Without the requirements above, the file upload will not work.
#Php file upload limit code
I have the following code to check if (resume and reference letter uploaded match desired type (pdf OR doc OR docx) and size (less than 400 kb) //check file extension and size uploadmaxfilesize, memorylimit and postmaxsize in the php.ini configuration file exactly. PHP file upload max size is determined by 3 configuration values in php.ini, namely uploadmaxfilesize, postmaxsize and memorylimit.
