/// <summary> /// 上传产品描述视频 /// 上传较大文件需要在web.config中进行配置 maxRequestLength和maxAllowedContentLength /// </summary> /// <param name="productID"></param> /// <returns></returns> public JsonResult UploadProductVideo(int productID) { StateModel state = AttachmentMgr.AddAttachment( HttpContext.Request.Files, productID, AttachmentType.ProductVideo); return(Json(state)); }