public ActionResult Index(HttpPostedFileBase file)
 {
     if (file != null)
     {
         GoogleDriveAPIHelper.UplaodFileOnDrive(file);
         ViewBag.Success = "File Uploaded on Google Drive";
         return(View());
     }
     ViewBag.Failed = "something went wrong.";
     return(View());
 }
示例#2
0
 public void Uplaod(HttpPostedFileBase file)
 {
     DAL.GoogleDriveAPIHelper g = new GoogleDriveAPIHelper();
     g.UplaodFileOnDrive(file);
 }
 public ActionResult Index(HttpPostedFileBase file)
 {
     GoogleDriveAPIHelper.UplaodFileOnDrive(file);
     ViewBag.Success = "File Uploaded on Google Drive";
     return(View());
 }