Author: konstantin.mishin
Date: 2010-12-17 11:17:57 -0500 (Fri, 17 Dec 2010)
New Revision: 20658
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/fileupload.js
Log:
RF-9971
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/fileupload.js
===================================================================
---
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/fileupload.js 2010-12-17
15:59:45 UTC (rev 20657)
+++
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/fileupload.js 2010-12-17
16:17:57 UTC (rev 20658)
@@ -173,7 +173,8 @@
var documentElement = contentDocument.documentElement;
var responseStatus, id;
if (documentElement.tagName.toUpperCase() == "PARTIAL-RESPONSE") {
- responseStatus = ITEM_STATE.DONE;
+ var errors = jQuery(documentElement).children("error");
+ responseStatus = errors.length > 0 ? ITEM_STATE.SERVER_ERROR: ITEM_STATE.DONE;
} else if ((id = documentElement.id) && id.indexOf(UID +
this.loadableItem.uid + ":") == 0) {
responseStatus = id.split(":")[1];
}