“http error” when using Uploadify plugin for JQuery

前端 未结 2 503
抹茶落季
抹茶落季 2021-01-20 05:23

I\'m using the plugin from here: http://www.uploadify.com/

I have setup a simple test case, select a file etc & I get a \"HTTP Error\" when I try to upload.

相关标签:
2条回答
  • 2021-01-20 06:17

    I got a different http error: HTTP undefined or HTTP 500. After 4 hours of searching the web, I found the answer.

    It is because the server uses Mod_Security. To turn it off, add these lines to .htacess file

    <Ifmodule mod_php5.c>
    SecFilterEngine "off"
    SecFilterScanPOST "off"
    </Ifmodule>
    

    Credit: scaturan posted on http://gallery.menalto.com/node/94614

    0 讨论(0)
  • 2021-01-20 06:25

    Problem fixed.... it was an issue with some stuff I had in the .htaccess file, probably the "LimitRequestBody".

    Not sure why these settings affected it as the values I had set in there were larger values than the files I was trying to upload, but alas the code I took out of .htaccess was the below..

    php_value upload_max_filesize 256MB
    php_value post_max_size 300MB
    php_value max_input_time 500
    LimitRequestBody 500MB
    
    0 讨论(0)
提交回复
热议问题