Re: Upload Images to Folder

  •  07-23-2012, 10:13 AM

    Re: Upload Images to Folder

    It is still not showing up in the folder

    --
    <script runat="server">
        void InsertMsg(string msg)
        {
            ListBoxEvents.Items.Insert(0, msg);
            ListBoxEvents.SelectedIndex = 0;
        }
        void ButtonPostBack_Click(object sender, EventArgs e)
        {
            InsertMsg("You clicked a PostBack Button.");
        }
        void Uploader_FileUploaded(object sender, UploaderEventArgs args)
        {
            InsertMsg("File uploaded! " + args.FileName + ", " + args.FileSize + " bytes.");
            args.CopyTo("~/images/"+args.FileName);
            System.IO.Stream data = args.OpenStream();
        }
    </script>
     
View Complete Thread