Welcome to the new Uploadify Community Forums. We've made the switch from PHPBB to Vanilla Forums in hopes of controlling the SPAM more efficiently. We hope this change doesn't suck so much. Also, don't forget to wrap your code in tags. You can quickly insert code using ctrl + f.
I lost some messages that were posted on February 4th. If you posted a message or reply on February 4th, please do so again. Sorry about the inconvenience.
Uploadify doesn't work
  • I have the following in my aspx page:

    <head runat="server">
    <title>Untitled Page</title>
    <link href="uploadify/uploadify.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="uploadify/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="uploadify/swfobject.js"></script>
    <script type="text/javascript" src="uploadify/jquery.uploadify.v2.1.4.min.js"></script>

    <script type="text/javascript">
    $(document).ready(function() {
    $('#file_upload').uploadify({
    'uploader' : 'uploadify/uploadify.swf',
    'script' : 'uploadify/uploadify.php',
    'cancelImg' : 'uploadify/cancel.png',
    'folder' : 'D:/IDataRawFiles/upload_temp',
    'auto' : true
    });
    });
    </script>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <input id="file_upload" name="file_upload" type="file" />
    <asp:Button ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click" ></asp:Button>

    </div>
    </form>
    </body>
    </html>

    And the .aspx.cs file has:

    protected void btnUpload_Click(object sender, EventArgs e)
    {
    for (int i = 0; i < Request.Files.Count; i++)
    {
    HttpPostedFile file = Request.Files[i];
    file.SaveAs(@"D:\IDataRawFiles\upload_temp\" + file.FileName);
    }
    }


    But when I click on Browse - 1) I can NOT select multiple files. 2) And the single file I select doesn't get uploaded in the location specified. I think the jQuery function has the 'folder' attribute specified and looks like it should magically(?) upload the file in the folder. Yet - I tried the btnUpload button click and doesn't work either. I get a 'object expected' script error from the browser when I try to upload.

    What am I missing?

    Thanks.

    nhuda

Howdy, Stranger!

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