我用.net 自带的上传控件FileUpload上传图片到服务器,大小只有几K的图片总是上传失败,写了一个测试类,报错说是:磁盘空间不足。   个人认为方法没错,应该是服务器提供商的问题吧代码:
       string name = this.FileUpload1.FileName;
       string filepath = MapPath("~/upload/" + name);
       
        if (FileUpload1.HasFile)
        {            try
            {
                 FileUpload1.SaveAs(filepath);
                 this.img1.Src = "~/upload/" + name;
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message.ToString());
                throw ex;
            }
        }