Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hello KK,
I was having issues with phpmailer incorrectly validating files I try to upload and attachment to an email, so I went into the the phpmailer file and added " . $file_ext" to the error output. When I tested the upload again the error showed a 'jpg' file extension yet phpmailer says the extension is not allowed uploaded_img: File extension not allowed "jpg", meanwhile I have already included allowed_ext='jpeg,jpg,gif,png' in the file upload input tag.

Code: Select all
// validate file extension
            $allowed_ext = explode( ',', $this->allowed_ext );
            if( $file_ext=='' || !in_array($file_ext, $allowed_ext) ){
                return $FUNCS->raise_error( 'File extension not allowed ' . $file_ext );
I have the same issue, did you find a solution in the meantime?
Could you please get me the very image file that is involved in this?
Also the exact definition of your editable region.

I'll try to reproduce the problem on my system.
3 posts Page 1 of 1