Actually, I am doing that....
- protected void Uploader1_FileUploaded(object sender, CuteWebUI.UploaderEventArgs args)
- {
- System.Drawing.Image postedImage = System.Drawing.Image.FromStream(args.OpenStream());
-
-
- Session["ImageHeight"] = postedImage.Height.ToString();
- Session["ImageWidth"] = postedImage.Width.ToString();
-
- string OrigFilename = Path.GetFileName(args.FileName);
- string OrigExtention = OrigFilename.Substring(OrigFilename.Length - 4, 4);
-
- System.Guid newGUID = System.Guid.NewGuid();
-
- string UploadedImageDir = Server.MapPath("UploadedImages/");
-
-
- string GUIDFilename = newGUID.ToString() + OrigExtention;
- string PathAndFileToUploadedImagesDir = UploadedImageDir + GUIDFilename;
-
-
- args.MoveTo(PathAndFileToUploadedImagesDir);
- }