ASP.NET MVC图片上传

工具:ssi-uploader

    $('#id').ssi_uploader({
        url: 'path'
    });
public ActionResult path()
        {
            HttpPostedFileBase file = Request.Files[0];
            string savePath = AppDomain.CurrentDomain.BaseDirectory + ""+file.FileName;
            file.SaveAs(savePath);
        }

 

posted on 2016-11-22 14:51  小门  阅读(2214)  评论(0编辑  收藏  举报

导航