Title: WP 4.5.2 Uplaoding Problem
Last modified: August 31, 2016

---

# WP 4.5.2 Uplaoding Problem

 *  [finelock](https://wordpress.org/support/users/finelock/)
 * (@finelock)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-452-uplaoding-problem/)
 * Good Afternoon,
 *  I am having problem uploading a file with a .rcdx extension
    the software reports
 * PD785-25052016.rcdx
    Sorry, this file type is not permitted for security reasons.
 * Is there a way I can tell WP to except this file please
 * All the best from Alan

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [robhob](https://wordpress.org/support/users/robhob/)
 * (@robhob)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-452-uplaoding-problem/#post-7427015)
 * Hi Alan,
 * Here’s an article on how to modify [permitted file types](http://pixert.com/blog/wordpress-file-type-permitted-security-reasons/)
   by modifying your wp-config.php file.
 * Cheers,
 * Rob
 *  Thread Starter [finelock](https://wordpress.org/support/users/finelock/)
 * (@finelock)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-452-uplaoding-problem/#post-7427037)
 * Hi Rob,
 *  Thank you for that I used the quick line define(‘ALLOW_UNFILTERED_UPLOADS’, 
   true);
    That solves the problem, but makes the website not secure
 * What I would like to do is use this
 * add_filter(‘upload_mimes’, ‘pixert_upload_types’);
    function pixert_upload_types(
   $existing_mimes=array()){ $existing_mimes[‘flv’] = ‘video/x-flv’; $existing_mimes[‘
   mid’] = ‘audio/midi’; return $existing_mimes; }
 * But I am not sure what to put in for names it is .rcdx as an extension but the
   file is not audio or video , it is a database file for a radio.
 * What would you suggest please
 * All the best from Alan
 *  [robhob](https://wordpress.org/support/users/robhob/)
 * (@robhob)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-452-uplaoding-problem/#post-7427129)
 * Hi Alan,
 * The following should do it:
 *     ```
       add_filter('upload_mimes', 'custom_upload_mimes');
       function custom_upload_mimes ( $existing_mimes=array() ) {
           $existing_mimes['rcdx'] = 'text/plain';
           return $existing_mimes;
       }
       ```
   
 * Here’s a link to the [Upload Mimes Filter](https://codex.wordpress.org/Plugin_API/Filter_Reference/upload_mimes)
   documentation on the Codex.
 * Cheers,
 * Rob
 *  Thread Starter [finelock](https://wordpress.org/support/users/finelock/)
 * (@finelock)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-452-uplaoding-problem/#post-7427134)
 * Good Afternoon Rob,
 *  Excellent works a treat, thank you for that, bit more info to add to my black
   book 🙂
 * All the best from Alan
 *  [robhob](https://wordpress.org/support/users/robhob/)
 * (@robhob)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/wp-452-uplaoding-problem/#post-7427179)
 * Excellent! Glad you came right.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WP 4.5.2 Uplaoding Problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [robhob](https://wordpress.org/support/users/robhob/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/wp-452-uplaoding-problem/#post-7427179)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
