fileupload上传图片
<asp:FileUpload ID="FileUpload1" runat="server" accept="image/*" /> HttpFileCollection upFiles = Request.Files; if (upFiles.Count > 0 && upFiles.Count < 2) { string wenjianjia = "a_" + DateTime.Now.ToString("yyyy-MM-dd"); string savePath = "/plugins/dangxingtijian/PC/face/img/" + wenjianjia; string savePaths = MapPath(savePath); if (!Directory.Exists(savePaths)) { Directory.CreateDirectory(savePaths); } for (int i = 0; i < upFiles.Count; i++) { string url_a = "a" + DateTime.Now.Ticks.ToString() + i; string url_f = "f" + DateTime.Now.Ticks.ToString() + i; string extendName = string.Empty;