1

I am using uploadify plugin for allowing users to upload files to my website. The script works fine in chrome but does not work in ie and firefox

  $(function() {
    $('#file_upload').uploadify({
     'checkExisting' : 'check-exists.php',
    'buttonText' : 'Select project',
    'fileSizeLimit' : '163840KB',
     'fileTypeDesc' : 'Image Files',
    'fileTypeExts' : '*.zip; *.rar',
        'swf'      : 'uploadify.swf',
        'uploader' : 'uploadify.php',
        'onUploadError' : function(file, errorCode, errorMsg, errorString) {
         $("input[type=submit]").attr("disabled", "disabled");
alert('The file ' + file.name + ' could not be uploaded: ' + errorString);
        },
        'onUploadSuccess' : function(file, data, response) {
            $("input[type=submit]").removeAttr("disabled");
    },

    });

any suggestions :)

Faisal Memon
  • 774
  • 3
  • 12
  • 28

1 Answers1

1

The code you posted has a trailing comma (the final one) which probably won't work in some versions of IE (see this question).

Also, your brackets are not all closed. Try changing }); to }) });

Community
  • 1
  • 1
Liam
  • 19,819
  • 24
  • 83
  • 123