• Resolved bkgeterna

    (@bkgeterna)


    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 6 years, 9 months ago by bkgeterna. Reason: improved formatting
Viewing 1 replies (of 1 total)
  • Plugin Author ShortPixel

    (@shortpixel)

    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.