Ignacio, I canot upload the all file types to ticket. for

Hi Ignacio,

I canot upload the all file types to ticket. for expamle I cant attach a .txt file or a .docx file and many more. it accepts png, jpg, rar. I need it to upload all types. It doesnt give any error for types I cannot attach. just It doesnt.

Please help me asap. Thanks.

  • aristath

    Hello there @hakan, I hope you're well today!

    Try adding this at the end of your theme's functions.php file:

    <?php
    
    function my_custom_allowed_filetypes() {
    	$allowed_file_types = array(
    		'jpg' =>'image/jpg',
    		'jpeg' =>'image/jpeg',
    		'gif' => 'image/gif',
    		'png' => 'image/png',
    		'zip' => 'application/zip',
    		'gz|gzip' => 'application/x-gzip',
    		'rar' => 'application/rar',
    		'pdf' => 'application/pdf'
    	);
    }
    
    add_filter( 'incsub_support_allowed_mime_types', 'my_custom_allowed_filetypes' );

    You can add the custom filetypes you want to accept on that array.

    I hope that helps!

    Cheers,
    Ari.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.