http文件上传demo(http模拟POST表单上传文件)

上传者: zjw0404 | 上传时间: 2021-09-23 16:34:45 | 文件大小: 279KB | 文件类型: ZIP
由于iOS无法通过html表单来上传文件,因此想要上传文件,必须实现http请求,而不能像其他语言那样通过html表单的post就能上传。此demo经过xcode5测试通过。此文件上传demo是按照 rfc1867协议实现的。

文件下载

资源详情

[{"title":"( 27 个子文件 279KB ) http文件上传demo(http模拟POST表单上传文件)","children":[{"title":"TestHttpDemo","children":[{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"TestHttpDemo.xcodeproj","children":[{"title":"project.xcworkspace","children":[{"title":"contents.xcworkspacedata <span style='color:#111;'> 157B </span>","children":null,"spread":false},{"title":"xcuserdata","children":[{"title":"zjw.xcuserdatad","children":[{"title":"UserInterfaceState.xcuserstate <span style='color:#111;'> 31.57KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"xcuserdata","children":[{"title":"zjw.xcuserdatad","children":[{"title":"xcschemes","children":[{"title":"xcschememanagement.plist <span style='color:#111;'> 574B </span>","children":null,"spread":false},{"title":"TestHttpDemo.xcscheme <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"project.pbxproj <span style='color:#111;'> 23.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"TestHttpDemoTests","children":[{"title":"en.lproj","children":[{"title":"InfoPlist.strings <span style='color:#111;'> 45B </span>","children":null,"spread":false}],"spread":true},{"title":"TestHttpDemoTests.m <span style='color:#111;'> 645B </span>","children":null,"spread":false},{"title":"TestHttpDemoTests-Info.plist <span style='color:#111;'> 703B </span>","children":null,"spread":false}],"spread":true},{"title":"TestHttpDemo","children":[{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"FlipsideViewController.m <span style='color:#111;'> 744B </span>","children":null,"spread":false},{"title":"en.lproj","children":[{"title":"InfoPlist.strings <span style='color:#111;'> 45B </span>","children":null,"spread":false}],"spread":true},{"title":"main.m <span style='color:#111;'> 331B </span>","children":null,"spread":false},{"title":"TestHttpDemo-Prefix.pch <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"FlipsideViewController.h <span style='color:#111;'> 487B </span>","children":null,"spread":false},{"title":"好人一生平安.png <span style='color:#111;'> 229.57KB </span>","children":null,"spread":false},{"title":"MainViewController.m <span style='color:#111;'> 6.52KB </span>","children":null,"spread":false},{"title":"TestHttpDemo.xcdatamodeld","children":[{"title":"TestHttpDemo.xcdatamodel","children":[{"title":"contents <span style='color:#111;'> 347B </span>","children":null,"spread":false}],"spread":false},{"title":".xccurrentversion <span style='color:#111;'> 265B </span>","children":null,"spread":false}],"spread":true},{"title":"TestHttpDemo-Info.plist <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"Base.lproj","children":[{"title":"Main_iPad.storyboard <span style='color:#111;'> 6.49KB </span>","children":null,"spread":false},{"title":"Main_iPhone.storyboard <span style='color:#111;'> 6.38KB </span>","children":null,"spread":false}],"spread":false},{"title":"Images.xcassets","children":[{"title":"LaunchImage.launchimage","children":[{"title":"Contents.json <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false}],"spread":false},{"title":"AppIcon.appiconset","children":[{"title":"Contents.json <span style='color:#111;'> 825B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"AppDelegate.h <span style='color:#111;'> 602B </span>","children":null,"spread":false},{"title":"MainViewController.h <span style='color:#111;'> 645B </span>","children":null,"spread":false},{"title":"AppDelegate.m <span style='color:#111;'> 6.66KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • yannizhang :
    谢谢分享!!!!
    2018-09-04
  • yaweji :
    学习学习,谢谢分享。。
    2017-12-07
  • wuzhiwei777 :
    还不错,感谢分享
    2016-09-08
  • yueshen1990 :
    学习了,虽然有点问题~不过用了学习不错
    2016-05-05
  • parkpark2008 :
    还行吧,凑合用
    2016-03-22

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明