带有大写文件名的jquery ui fileupload错误

时间:2015-02-26 20:15:12

标签: jquery jquery-ui xmlhttprequest blueimp

我在使用Blueimp JQuery fileupload时遇到了一个错误。一切正常,当我上传一个png / jpg时,但是,当文件扩展名为大写时,$ _POST在服务器端为空。

两种情况下的请求都相同:

Accept:application/json, text/javascript, */*; q=0.01
Accept-Encoding:gzip, deflate
Accept-Language:hu-HU,hu;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Content-Length:4721321
Content-Type:multipart/form-data; boundary=----WebKitFormBoundarybCjGtutGsoqkJ58r
Cookie:language=hu; PHPSESSID=m6ag0h5aqpupseat2eb45vh130; csrftoken=EipVk7qvyTxOxuC9TwY8Wrozy8aWOFZ8
Host:localhost:90
Origin:http://localhost:90
Referer:http://localhost:90/belvaros-ingatlan/ugynok-admin/index.php
User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36
X-Requested-With:XMLHttpRequest

休息符的内容类型不同。

HTTP/1.1 200 OK
Date: Thu, 26 Feb 2015 19:31:58 GMT
Server: Apache/2.4.9 (Win64) PHP/5.5.12
X-Powered-By: PHP/5.5.12
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 33
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=ISO-8859-2

我在ajax_processing php的开头检查了$ _POST和$ _REQUEST:

global $domain, $cmd, $r_ugynok;
$domain="mydomain.hu";
session_start();
//var_dump($_REQUEST);
//var_dump($_POST);

我搜索谷歌很多,但找不到它的原因,也没有在fileupload的源代码中找到任何内容。任何建议,为什么会发生这种情况?

1 个答案:

答案 0 :(得分:0)

用户错误:

在php.ini中

post_max_size设置得太小了

相关问题