Apache 403 Forbidden When Uploading Files

前端 未结 1 1409
花落未央
花落未央 2020-12-18 14:22

I\'m having a strange apache error when I submit a multipart/form-data form with an input file. It seems that only happens when I upload files 70kb or bigger.

Here a

相关标签:
1条回答
  • 2020-12-18 14:59

    Apaches module mod_security has a 60kb upload limit by default so any bigger upload will throw a 403 error code.

    As the modsec.conf is only editable by the server provider, I add the following line to every root .htaccess:

    SecFilterEngine Off
    

    That turned off the mod_security filter in general.

    0 讨论(0)
提交回复
热议问题