Author: michiel
Date: 2010-03-03 15:12:16 +0100 (Wed, 03 Mar 2010)
New Revision: 41251

Modified:
   
mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/validation/validation.js.jsp
Log:
some installations of windows seem not to be able to recognize any file

Modified: 
mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/validation/validation.js.jsp
===================================================================
--- 
mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/validation/validation.js.jsp
  2010-03-03 12:54:56 UTC (rev 41250)
+++ 
mmbase/branches/MMBase-1_9/base-webapp/src/main/webapp/mmbase/validation/validation.js.jsp
  2010-03-03 14:12:16 UTC (rev 41251)
@@ -294,8 +294,13 @@
                 // most other browsers simply support the following (Note the 
incredible ease and simplicity, compared to the horrible shit of IE).
                 if (el.files.length > 0) {
                     type = el.files.item(0).type;
+                    if (type == null) {
+                        // This happens sometimes in some Windows, I don't 
understand that.
+                        type = "";
+                    }
                     //type = "";
                 } else {
+                    //alert("Did not recognize type of " + el.files);
                     type = "";
                 }
             }

_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to