FileReference upload & Anti-Virus Software

Lately I experienced some problems with FileReference upload while using Kapersky Anti-Virus Software. The software has a feature to scan HTTP traffic for viruses which btw. is enabled by default. It uses some kind of cache which forces FileReference Events to be inaccurately or not beeing dispatched at all. As there are even more Anti-Virus Tools and Firewalls out there having similar features you should be aware of this problems.

You will notice the first problem when you try to show the upload progress. The ProgressEvent.PROGRESS bytesLoaded property will provide the bytes in the cache instead of the actual uploaded bytes. As a result your progress display will shoot up to 100% immediately on a fast Computer.

Be also careful with the usage of DataEvent.UPLOAD_COMPLETE_DATA as it doesn’t get dispatched once in a while while using the HTTP traffic scanning. Basically I guess the returning data is absorbed by the proxy, which handles the Anti-Virus cache.

The last issue is very weird but apparently Event.COMPLETE is fired before the file is completly uploaded to the server, therefore the file is not available just after the COMPLETE event, in case you want to call a convert script or something similar right after the upload. My assumption is that the proxy generates an HTTP status code of 200 which triggers the flash event when the cache is filled.



3 Responses (Add Your Comment)

  1. shlomi schwartz May 28, 2009
    at 12:01 pm

    Is there a workaround for this issue?

  2. The first problem is not really critical, just your progress display will not be right.

    Same with the second one, just try to not use DataEvent.UPLOAD_COMPLETE_DATA.

    What I do to get around the last issue, I call a script on the server which checks if the file is there. You can use a Timer to call that script (e.g. every 5 seconds) until the file is available.

  3. I have anticirus firewall for my laptop pc. Do I need one for linux as well?

Leave a Reply

Formatting: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Other Entries

About

Martin Rädlinger is an Interactive Developer & Designer. He specializes in interactive coding predominantly with ActionScript, but every new challenge is welcome. If you like his work feel free to get in touch with him. At the moment he's available for freelance work.

Contact

Martin Rädlinger
mail: mr [at] formatlos.de
web: www.formatlos.de
xing: Martin Rädlinger
linkedin: Martin Rädlinger
skype: martinraedlinger