public CloudinaryDotNet.Actions.VideoUploadResult uploadVideo(CloudinaryDotNet.Actions.FileDescription fileDescription)
 {
     CloudinaryDotNet.Actions.VideoUploadParams uploadParam = new CloudinaryDotNet.Actions.VideoUploadParams(){
         File = fileDescription
     };
     return cloudinary.Upload(uploadParam);
 }
 private String UploadImageFabricJS(String imageFile, CloudinaryDotNet.Cloudinary cloudinary)
 {
     string x = imageFile.Replace("data:image/png;base64,", "");
     byte[] imageBytes = Convert.FromBase64String(x);
     MemoryStream ms = new MemoryStream(imageBytes, 0, imageBytes.Length);
     ms.Write(imageBytes, 0, imageBytes.Length);
     System.Drawing.Image image = System.Drawing.Image.FromStream(ms, true);
     image.Save(Server.MapPath("~/image.png"), System.Drawing.Imaging.ImageFormat.Png);
     ImageUploadParams uploadParams = new ImageUploadParams()
     {
         File = new FileDescription(Server.MapPath("~/image.png")),
         PublicId = User.Identity.Name + DateTime.Now + "demotevators"
     };
     ImageUploadResult uploadResult = cloudinary.Upload(uploadParams);
     System.IO.File.Delete(Server.MapPath("~/image.png"));
     return uploadResult.Uri.ToString();
 }
 private String UploadImage(HttpPostedFileBase  imageBase, CloudinaryDotNet.Cloudinary cloudinary)
 {
         var fileName = System.IO.Path.GetFileName(imageBase.FileName);
         imageBase.SaveAs(Server.MapPath("~/" + fileName));
         ImageUploadParams uploadParams = new ImageUploadParams()
         {
             File = new FileDescription(Server.MapPath("~/" + fileName)),
             PublicId = User.Identity.Name + DateTime.Now,
         };
         ImageUploadResult uploadResult = cloudinary.Upload(uploadParams);
         System.IO.File.Delete(Server.MapPath("~/" + fileName));
         return uploadResult.Uri.ToString();
 }