简体   繁体   中英

blueimp jQuery-File-Upload Undefined index: CONTENT_LENGTH

I am testing working example from https://github.com/blueimp/jQuery-File-Upload/

When I run it on php-5.4.14-Win32-VC9-x86 , I get

*Undefined index: CONTENT_LENGTH in server\\php\\UploadHandler.php on lin 392* .

Can you suggest what is wrong? something to do with php.ini ?

Link: server/php/UploadHandler.php

I think blueimp jQuery-File-Upload was tested on linux apache php as for windows apache and php we have to add before Line 392

if ( !isset( $_SERVER['CONTENT_LENGTH'] ) )
    $_SERVER['CONTENT_LENGTH'] = '';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM