Control which file extensions can be uploaded

Jun 9, 2008 at 4:56 PM
Is there any way to limit what file extensions can be uploaded?  (E.g., only allow .DOCX, .JPG, etc.).  Currently I handle the filtering in the FileReceived event and throw an exception on dispermitted file types.

Thank you in advance.
Jun 10, 2008 at 11:21 PM
The current version does nto have this implemented. If you want to do that go to swf/Classes/com/flajaxian/ and change 
 public function browse():Void {
  if(this._debug) Debug.trace("FileUploader.browse");
method passing there the file types as described here and of course you'd have to recompile the flash and the project
Jun 23, 2008 at 6:38 AM
In the change set 11489 or later you can find AllowedFileTypes property that can be used to limit the allowed file types.

The format is as follow:
[File Group 1 Name][FileType1;FileType2;FileType3][MAC types],[File Group 2 Name][FileType1;FileType2;FileType3][MAC types]

for example if you want two file froups: "Image files" and "Flash Movies" you would use:
AllowedFileTypes="[Image Files][*.jpg;*.jpeg;*.gif;*.png][JPEG;jp2_;GIFf;PNGf],[Flash Movies][*.swf][SWFL]"

you can also omit the Mac types for example: