首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏销声匿迹

    文件上传之Html5 + jQuery上传、asp.net web api接收

    WebAPI: if(HttpContext.Current.Request.Files.AllKeys.Any()) { var httpPostedFile = HttpContext.Current.Request.Files; if(httpPostedFile ! = null && httpPostedFile.Count > 0) { foreach (string f in httpPostedFile ) { var file = httpPostedFile[f];

    2.6K30发布于 2020-09-03
  • 来自专栏数据结构笔记

    ASP.NET 读取客户端提交的数据

    context.Request.Form["key"] 读取 get请求提交的数据: string value = context.Request.Params["key"] 读取用户上传的文件: HttpPostedFile file = context.Request.Files["key"] HttpPostedFile.ContentLength:获取上传文件的大小 HttpPostedFile.ContentType :获取上传文件的类型(由客户端指定) HttpPostedFile.FileName:获取上传文件的文件名(由客户端指定) HttpPostedFile.InputStream:获取一个 Stream 对象,读取上传文件的内容 HttpPostedFile.SaveAs(string):保存上传的文件,传入参数为要保存到的路径

    4.1K20发布于 2020-03-25
  • 来自专栏菩提树下的杨过

    将淘宝数据包导入自己的商城系统

    Request.Files; for (int i = 0; i < fc.Count; i++) { HttpPostedFile for (int i = 0; i < fc.Count; i++) { HttpPostedFile

    1.6K101发布于 2018-01-22
  • 来自专栏红蓝对抗

    攻防技巧|红队快速高效挖掘.net系统漏洞

    Route("uploadAnony")][AllowAnonymous][HttpPost]public IHttpActionResult uploadAnony(string code){    HttpPostedFile httpPostedFile = context.Request.Files[i];            if (httpPostedFile.ContentLength > 0)            {                string extension = Path.GetExtension(httpPostedFile.FileName);  // ❌ 未验证                string text3 = Guid.NewGuid().ToString() + extension;                httpPostedFile.SaveAs(text2 + text3 = null)    {        HttpPostedFile httpPostedFile = base.Request.Files["Filedata"];        string text

    25610编辑于 2025-12-05
  • 来自专栏全栈程序员必看

    asp.net中通过input file上传文件

    : <input id=”htmlFile” type=”file” runat=”server” /> 后台: if (Request.Files.Count > 0) { HttpPostedFile

    2.6K20编辑于 2022-09-09
  • 来自专栏ASP.NET MVC5 后台权限管理系统

    ASP.NET MVC5+EF6+EasyUI 后台管理系统(36)-文章发布系统③-kindeditor使用

    UpFilePath"); //取得上传的对象名称 string _delfile = ContextRequest.GetString(_refilepath); HttpPostedFile string _upfilepath = context.Request.QueryString["UpFilePath"]; //取得上传的对象名称 HttpPostedFile if (context.Request.QueryString["IsWater"] == "1") _iswater = true; HttpPostedFile

    2.2K80发布于 2018-01-16
  • 来自专栏Ken的杂谈

    ImageHelper.cs-支持高清缩略图

    以图片中心为轴心,截取正方型,然后等比缩放 /// 用于头像处理 /// /// <param name="postedFile">原图HttpPostedFile /// <param name="quality">质量(范围0-100)</param> public static void CutForSquare(System.Web.HttpPostedFile 以图片中心为轴心,截取正方型,然后等比缩放 /// 用于头像处理 /// /// <param name="postedFile">原图HttpPostedFile 指定长宽裁剪 /// 按模版比例最大范围的裁剪图片并缩放至模版尺寸 /// /// <param name="postedFile">原图HttpPostedFile ///

    /// 图片等比缩放 /// /// <param name="postedFile">原图HttpPostedFile

    1.1K20发布于 2018-09-11
  • 来自专栏码农的生活

    jQuery Uploadify结合C#实现带进度条的上传

    context.Response.ContentType = "text/plain"; context.Response.Charset = "utf-8"; HttpPostedFile

    1.5K40发布于 2021-11-03
  • 来自专栏c#Winform自定义控件系列

    jquery上传控件uploadify使用备忘

    context.Response.ContentType = "text/plain"; context.Response.Charset = "utf-8"; HttpPostedFile

    1.3K10发布于 2019-09-11
  • 来自专栏

    Flex 上传文件,服务端.net

    Path = Server.MapPath("upload"); for (int i = 0; i < uploadedFiles.Count; i++)         {             HttpPostedFile

    67010发布于 2018-09-12
  • 来自专栏王磊的博客

    高拍仪拍照SDK开发(良田影像S300L|S500L)

    ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; HttpPostedFile

    3.6K80发布于 2018-05-08
  • 来自专栏空间大数据可视化

    利用iframe+from表单实现跨域上传文件

    HttpResponse response = context.Response; string callbackurl = context.Request["callbackurl"]; HttpPostedFile

    2.5K40发布于 2018-07-05
  • 来自专栏Java架构师必看

    在SQL Server中保存和输出任意类型的文件

    ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO 下面创建上传表单: 一旦提交了表单,我们使用HtmlInputFile类的PostedFile属性来访问我们上载的文件,用HttpPostedFile

    1.5K30发布于 2021-03-22
  • 来自专栏kwcode

    plupload 上传组件的使用

    ["chunks"]);//总的分块数量 string name = Request["name"]; HttpPostedFile <param name="context"></param> /// <returns></returns> private string WriteTempFile(HttpPostedFile

    3.5K60发布于 2018-03-14
  • 来自专栏菩提树下的杨过

    FckEditor 2.6.4升级手记

    修改 protected void FileUpload( string resourceType, string currentFolder, bool isQuickUpload ) {     HttpPostedFile

    1.4K70发布于 2018-01-23
  • 来自专栏静心物语313的Coding

    练习文件保存按照日期来创建文件夹,并保存

    context.Response.Write("<html><head><title>文件保存按日期</title></head><body>"); HttpPostedFile

    1.4K20发布于 2020-03-24
  • 来自专栏托老师

    c# 上传代码

    TD> 下面是后台,及"文件上传"按钮触发的事件: 程序代码: private void submit_Click(object sender, System.EventArgs e) { HttpPostedFile

    98610发布于 2020-03-05
  • 来自专栏全栈程序员必看

    c++发送post请求_request的post方法作用

    = null && files.Count > 0) { for (int i = 0; i < files.Count; i++) { HttpPostedFile file = files[i];

    2.9K30编辑于 2022-10-03
  • 来自专栏java架构师

    Web开发中的文件上传组件uploadify的使用

    folder = context.Request["folder"]; //LogTextHelper.Info(folder); HttpPostedFile

    1.9K30发布于 2019-01-30
  • 来自专栏Porschev[钟慰]的专栏

    Asp.Net 用Jquery和一般处理程序实现无刷新上传大文件

    { int resultVal = (int)ReturnVal.Failed; try { HttpPostedFile

    2.5K50发布于 2018-01-16
领券