Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

File Dialog not appearing
  • With the following code, the file input field gets converted to a flash button, but when I press the flash button, no file dialog appears. Vista, with Firefox, chrome,safari

    <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
    <html xmlns=\"http://www.w3.org/1999/xhtml\">
    <head>
    <title>test</title>
    <script type=\"text/javascript\" src=\"http://www.uploadify.com/_scripts/jquery.js\"></script>
    <script type=\"text/javascript\" src=\"http://www.uploadify.com/_scripts/swfobject.js\"></script>
    <script type=\"text/javascript\" src=\"http://www.uploadify.com/_scripts/jquery.uploadify.v2.0.0.min.js\"></script>

    </head>
    <body>
    <p><strong>Single File Upload</strong></p>
    <input id=\"fileInput1\" name=\"fileInput1\" type=\"file\" />

    <script type=\"text/javascript\">
    $(document).ready(function() {
    $(\"#fileInput1\").uploadify({
    'uploader': 'http://www.uploadify.com/_scripts/uploadify.swf',
    'script': 'http://www.uploadify.com/_scripts/uploadify.php',
    'cancelImg': 'cancel.png',
    'multi': false
    });
    });
    </script>

    </body>
    </html>
  • I had the same problem as you and I explained why it's happening in here. All you need to do is place the swf file in an appropriate location on your own domain (wherever this example page is located) and load it from there... i.e.

    <script type=\"text/javascript\">
    $(document).ready(function() {
    $(\"#fileInput1\").uploadify({
    'uploader': 'http://www.yourdomain.com/_scripts/uploadify.swf',
    'script': 'http://www.uploadify.com/_scripts/uploadify.php',
    'cancelImg': 'cancel.png',
    'multi': false
    });
    });
    </script>