Author: pyaschenko
Date: 2008-09-26 07:47:16 -0400 (Fri, 26 Sep 2008)
New Revision: 10570
Modified:
trunk/ui/fileUpload/src/main/flash/FileUploadComponent.as
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/swf/fileUploadComponent.swf
Log:
https://jira.jboss.org/jira/browse/RF-4533
Modified: trunk/ui/fileUpload/src/main/flash/FileUploadComponent.as
===================================================================
--- trunk/ui/fileUpload/src/main/flash/FileUploadComponent.as 2008-09-26 11:47:04 UTC (rev
10569)
+++ trunk/ui/fileUpload/src/main/flash/FileUploadComponent.as 2008-09-26 11:47:16 UTC (rev
10570)
@@ -87,10 +87,10 @@
for (var i:Number = 0; i < list.length; i++) {
if (this.fileRefList.length==this.maxFiles) break;
item = list[i];
- if (!this.checkFileType(item.type) || !this.checkDuplicated(item.name)) {
+ /*if (!this.checkFileType(item.type) || !this.checkDuplicated(item.name)) {
ExternalInterface.call(this.getComponentString()+"._flashFireEvent('ontyperejected',
{})");
continue;
- }
+ }*/
item.addListener(this);
this.fileRefList.push(item);
this.fileDataList.push("{creationDate:
"+this.getJSDateString(item.creationDate)+", creator:
'"+item.creator+"', modificationDate:
"+this.getJSDateString(item.modificationDate)+", name:
'"+item.name+"', size: "+item.size+", type:
'"+item.type+"'}");
@@ -109,13 +109,13 @@
ExternalInterface.call(this.getComponentString()+"._flashOnComplete()");
}
- public function onHTTPError (fileRef:FileReference, httpError:Number) {
+ public function onHTTPError (file:FileReference, httpError:Number): Void {
ExternalInterface.call(this.getComponentString()+"._flashHTTPError("+httpError+")");
}
public function onIOError (file:FileReference) {
ExternalInterface.call(this.getComponentString()+"._flashIOError()");
}
- public function onSecurityError (fileRef:FileReference, errorString:String) {
+ public function onSecurityError (file:FileReference, errorString:String) {
ExternalInterface.call(this.getComponentString()+"._flashOnSecurityError('"+errorString+"')");
}
Modified:
trunk/ui/fileUpload/src/main/resources/org/richfaces/renderkit/html/swf/fileUploadComponent.swf
===================================================================
(Binary files differ)