Title: Malicious File Upload (patterns) causing http error for custom role
Last modified: July 25, 2017

---

# Malicious File Upload (patterns) causing http error for custom role

 *  Resolved [uqamsav](https://wordpress.org/support/users/uqamsav/)
 * (@uqamsav)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/malicious-file-upload-patterns-causing-http-error-for-custom-role/)
 * The Firewall setting : `file_upload Malicious File Upload (Patterns)`
    is causing
   users with a custom role (created via User role Editor), to experience http error
   on attempting to upload files smaller than our limit of 16 Mb.
 * Possibly related to these issues:
    [https://wordpress.org/support/topic/http-error-issues/](https://wordpress.org/support/topic/http-error-issues/)
   [https://wordpress.org/support/topic/firewall-malicious-file-upload-php-blocking-users-from-uploading-images/](https://wordpress.org/support/topic/firewall-malicious-file-upload-php-blocking-users-from-uploading-images/)

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

 *  Thread Starter [uqamsav](https://wordpress.org/support/users/uqamsav/)
 * (@uqamsav)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/malicious-file-upload-patterns-causing-http-error-for-custom-role/#post-9353257)
 * An **HTTP Error** is shown to the user, however inspecting the console reveals
   the following error:
    `POST https://mysite.com/wp-admin/async-upload.php 500 (
   Internal Server Error)`
 * To be clear, disabling this single setting, fixes the error. Re-enabling it, 
   predictably causes the error to reappear.
 * Thank you
 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/malicious-file-upload-patterns-causing-http-error-for-custom-role/#post-9367277)
 * Hi,
    Did you check the server error log looking for more information regarding
   this “500 Internal Server Error”?
 * I’m trying to reproduce this issue at my end, that’s what I’ve done so far but
   without any luck:
    – Installed “User Role Editor” plugin. – Created a new role
   copied from “Editor”. – Created a new user under this newly created role. – Logged
   in with this new user and uploaded an image -3 MB in size- successfully in the
   media library.
 * Let me know if I’m missing something?
 * Thanks.
 *  [wfchloe](https://wordpress.org/support/users/wfchloe/)
 * (@wfchloe)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/malicious-file-upload-patterns-causing-http-error-for-custom-role/#post-9434184)
 * Hello!
 * I hope we were successful in helping you resolve your issue with Wordfence! Since
   we have not heard back from you in the past 2 weeks I will now be marking this
   support thread as resolved. However, if we still haven’t resolved your issue 
   please reach out to us as we would be more than happy to further assist you!
 * Thanks and have a great day!
    Chloe

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

The topic ‘Malicious File Upload (patterns) causing http error for custom role’ 
is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [custom role](https://wordpress.org/support/topic-tag/custom-role/)
 * [http error](https://wordpress.org/support/topic-tag/http-error/)
 * [upload](https://wordpress.org/support/topic-tag/upload/)

 * 3 replies
 * 3 participants
 * Last reply from: [wfchloe](https://wordpress.org/support/users/wfchloe/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/malicious-file-upload-patterns-causing-http-error-for-custom-role/#post-9434184)
 * Status: resolved