Support system ticket file uploads

It seems like the only files that will upload are pdf. Is there a setting to allow other file types?

currently csv, doc, docx are not working even though our network settings allows for this.

Support access is enabled.

  • Michael Bissett
    • Recruit

    Hey @jono_39, hope you're doing well today! :slight_smile:

    If you were to insert the following code into your site as a mu-plugin (more on that here):

    Plugin Name: My Allowed Filetypes for Support
    Description: Modifies allowed filetypes for the Support System plugin
    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',
    		'doc' => 'application/doc',
    		'doc' => 'application/docx',
    		'txt' => 'application/txt',
    add_filter( 'incsub_support_allowed_mime_types', 'my_custom_allowed_filetypes' );

    That'll allow you to upload other file types (like .docx, just tested that one out myself). :slight_smile:

    Hope this helps!

    Kind Regards,

    P.S. Code credit goes to my colleague Patrick:

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.