Saving Uploaded File

  •  05-02-2008, 10:13 AM

    Saving Uploaded File

    I cannot get the uploaded file to save out of the UploaderTemp folder before it is deleted. I changed the following method as was suggested to someone else in a different thread. Below is the code change I made:
     

    void Uploader_FileUploaded(object sender, UploaderEventArgs args)

    {

    Uploader uploader = (Uploader)sender;

    InsertMsg("File uploaded! " + args.FileName + ", " + args.FileSize + " bytes.");

    //Copys the uploaded file to a new location.

    args.CopyTo("C:\\Workspace\\Data\\WebSites\\Sites\\test\\store");

    //You can also open the uploaded file's data stream.

    //System.IO.Stream data = args.OpenStream();

    }

View Complete Thread