对基于样本的java服务器堆栈使用Fineuploader 5.0.3。
所有上传内容在Firefox,Chrome,IE 10及更高版本中都能正常运行。这似乎只发生在IE 9或更低版本中。我已经在不同环境中的多台机器上进行了测试,结果相同。
以下是来自IE9会话的调试日志:
[Fine Uploader 5.0.3] Received 1 files or inputs.
[Fine Uploader 5.0.3] Sending simple upload request for 0
[Fine Uploader 5.0.3] Sending upload request for 0
[Fine Uploader 5.0.3] Received iframe load event for CORS upload request (iframe name 0_3da0a2e3-33f1-46a0-a172-cec58610a2a1)
[Fine Uploader 5.0.3] Received the following window message: '{"success": true, "uuid":"23763c4a-e282-4c03-9d7d-c863d307755d", "auth":"12345", "objectid":"1076"}'
SCRIPT438: Object doesn't support property or method '_parseJsonResponse'
File: fineuploader.js, Line: 4799, Column: 17
[Fine Uploader 5.0.3] No valid message received from loaded iframe for iframe name 0_3da0a2e3-33f1-46a0-a172-cec58610a2a1
[Fine Uploader 5.0.3] iframe loaded
[Fine Uploader 5.0.3] Simple upload request failed for 0
非常感谢帮助。
答案 0 :(得分:0)
这似乎是5.0.0中的回归。我已提交a bug in the project's issue tracker并已安排修复v5.0.5。
快速解决方法是更改此行:
response = handler._parseJsonResponse(fileId, message),
到此:
response = qq.parseJson(message);
在源头。但是,更好的长期修复(我们应该将其纳入即将发布的修补程序版本)涉及转换the commit where we moved around the function that delegates to qq.parseJson
for form-based uploads。