Solution for Flash Cookie Bug

Flash cookie bug can be solved by creating `.htaccess` for `uploadify.php`. .htaccess removes any authentication of uploadify.php and prevents firefox from crashing.

First, create .htaccess file within the same folder with uploadify.php.

Here is my .htaccess

<Files "uploadify.php">
  Satisfy Any
</Files>

And here is the script for my uploader:

<script type="text/javascript">
  $(document).ready(function() {
    $("#uploadify").uploadify({
      'uploader'       : '/scripts/uploadify.swf',
      'script'         : '/scripts/uploadify.php',
      'cancelImg'      : '/images/cancel.png',
      'buttonImg'      : '/images/browse.jpg',
      'width'          : 498,
      'height'         : 24,
      'folder'         : '/uploads/videos',
      'queueID'        : 'fileQueue',
      'auto'           : true,
      'multi'          : false,
      'sizeLimit'      : 102400000,
      'fileExt'        : "*.avi;*.mov;*.mpg;*.mpeg;",
      'fileDesc'       : "*.avi, *.mov, *.mpg, *.mpeg"
    });
  });
</script>

I hope this helps.

Comments

Popular posts from this blog

Remote Deployment with Ant and Rsync

How to Install CruiseControl