Title: security guidelines
Last modified: February 20, 2018

---

# security guidelines

 *  Resolved [bkgeterna](https://wordpress.org/support/users/bkgeterna/)
 * (@bkgeterna)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/security-guidelines/)
 * Hi all,
 * I have troubles replacing simple text files with a .dat-extension. The function`
   wp_check_filetype_and_ext` seems to return an empty result, causing the error`'
   File type does not meet security guidelines. Try another.'`
 * The user-setting ‘unfiltered_upload’ had no effect. I’ve further updated `wp_get_ext_types`
   and appended the extension .dat to filter ‘text’, which had no effect either.
   The only option was to uncomment the respective lines in upload.php.
 * What would be the correct way to allow for an upload of simple text files (with
   arbitrary extension)? I understand that it is necessary to check binary files
   to avoid the distribution of maleware. But a text file should not be as critical,
   although it may contain malicious script code.
 * Thank you!
    -  This topic was modified 8 years, 2 months ago by [bkgeterna](https://wordpress.org/support/users/bkgeterna/).
      Reason: improved formatting

Viewing 1 replies (of 1 total)

 *  Plugin Author [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * (@shortpixel)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/security-guidelines/#post-10074052)
 * Hi, thanks for your feed-back and sorry for the problem. ShortPixel recently 
   took over Enable Media Replace plugin. I put this on our todo list, will take
   a look and let you know in the following weeks.

Viewing 1 replies (of 1 total)

The topic ‘security guidelines’ is closed to new replies.

 * ![](https://ps.w.org/enable-media-replace/assets/icon-256x256.png?rev=1940728)
 * [Enable Media Replace](https://wordpress.org/plugins/enable-media-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-media-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-media-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-media-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-media-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-media-replace/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ShortPixel](https://wordpress.org/support/users/shortpixel/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/security-guidelines/#post-10074052)
 * Status: resolved