Support

Account

Home Forums ACF PRO File Upload – Allowed file types Not Working Reply To: File Upload – Allowed file types Not Working

  • Hi @acf-support

    What’s Happening is On selecting a file from the media library or uploading its showing a restricted message but is allowing me to pick the wrong format file and save the same without any error thrown.

    No error thrown on save/update
    After Saving

    Warning shown on wrong file selection
    Warning

    I’m using php code to include the acf fields

    
    				array (
    					'key' => 'field_18',
    					'label' => 'Documents:',
    					'name' => 'documents',
    					'type' => 'file',
    					'instructions' => '',
    					'required' => 1,
    					'conditional_logic' => 0,
    					'wrapper' => array (
    						'width' => 50,
    						'class' => '',
    						'id' => '',
    					),
    					'return_format' => 'url',
    					'library' => 'all',
    					'min_size' => '',
    					'max_size' => '',
    					'mime_types' => 'jpg,jpeg',
    				),