Re: Temp Directory

  •  01-25-2011, 3:38 PM

    Re: Temp Directory

    Dear mremigio,
     
    If you don't explicitly  set the temporary directory, Ajax Uploader will use "C:\Windows\Temp\AjaxUploaderTemp" as the temporary directory. 
    Please use the .CopyTo or .MoveTo method to copy or move the uploaded files. 
              void Uploader_FileUploaded(object sender, UploaderEventArgs args)
            {
                Uploader uploader = (Uploader)sender;
                InsertMsg("File uploaded! " + args.FileName + ", " + args.FileSize + " bytes.");
                
                //Copies the uploaded file to a new location.
                //args.CopyTo("c:\\temp\\"+args.FileName);
                //You can also open the uploaded file's data stream.
                //System.IO.Stream data = args.OpenStream();
            }
     
    Thank you for asking
View Complete Thread