sails-angular-file-upload-example-源码

上传者: 42099151 | 上传时间: 2021-06-23 16:05:11 | 文件大小: 130KB | 文件类型: ZIP
#Sails 角度文件上传 这个应用程序是使用sails 和angular 进行文件上传的一个快速而简单的例子。 ##后端(帆) Sails 使用 Skipper 来处理它的文件上传。 Skipper 是一个快递中间件,也可以用于非帆快递项目。 它是 body-parser 或 multer 的替代品。 Skipper 也可以直接上传到 S3 或其他文件服务。 ####设置 为了接受来自 angular 的上传,我们创建了一个用于上传文件的 REST 端点(路由)。 该路由被添加到config/route.js并指向控制器中的一个动作,该动作使用船长的req.file().upload()方法来接受上传。 req . file ( 'nacho' ) . upload ( function ( err , files ) { //do something with th

文件下载

资源详情

[{"title":"( 75 个子文件 130KB ) sails-angular-file-upload-example-源码","children":[{"title":"sails-angular-file-upload-example-master","children":[{"title":"api","children":[{"title":"services","children":[{"title":".gitkeep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"models","children":[{"title":".gitkeep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"policies","children":[{"title":"sessionAuth.js <span style='color:#111;'> 685B </span>","children":null,"spread":false}],"spread":true},{"title":"responses","children":[{"title":"badRequest.js <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"forbidden.js <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"ok.js <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"serverError.js <span style='color:#111;'> 2.39KB </span>","children":null,"spread":false},{"title":"notFound.js <span style='color:#111;'> 2.44KB </span>","children":null,"spread":false}],"spread":true},{"title":"controllers","children":[{"title":"TacoController.js <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":".gitkeep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"app.js <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 948B </span>","children":null,"spread":false},{"title":"assets","children":[{"title":"images","children":[{"title":".gitkeep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"templates","children":[{"title":".gitkeep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"robots.txt <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"js","children":[{"title":"tamale.js <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"dependencies","children":[{"title":"sails.io.js <span style='color:#111;'> 69.02KB </span>","children":null,"spread":false},{"title":"angular-bootstrap-file-field.min.js <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"angular-bootstrap-file-field.min.js.map <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"favicon.ico <span style='color:#111;'> 920B </span>","children":null,"spread":false},{"title":"styles","children":[{"title":"importer.less <span style='color:#111;'> 874B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Gruntfile.js <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"views","children":[{"title":"layout.ejs <span style='color:#111;'> 3.64KB </span>","children":null,"spread":false},{"title":"500.ejs <span style='color:#111;'> 65.88KB </span>","children":null,"spread":false},{"title":"403.ejs <span style='color:#111;'> 3.57KB </span>","children":null,"spread":false},{"title":"homepage.ejs <span style='color:#111;'> 750B </span>","children":null,"spread":false},{"title":"404.ejs <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":".sailsrc <span style='color:#111;'> 43B </span>","children":null,"spread":false},{"title":"config","children":[{"title":"connections.js <span style='color:#111;'> 4.60KB </span>","children":null,"spread":false},{"title":"csrf.js <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false},{"title":"sockets.js <span style='color:#111;'> 11.03KB </span>","children":null,"spread":false},{"title":"bootstrap.js <span style='color:#111;'> 627B </span>","children":null,"spread":false},{"title":"policies.js <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false},{"title":"routes.js <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false},{"title":"log.js <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"session.js <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":"env","children":[{"title":"production.js <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"development.js <span style='color:#111;'> 830B </span>","children":null,"spread":false}],"spread":false},{"title":"globals.js <span style='color:#111;'> 3.22KB </span>","children":null,"spread":false},{"title":"http.js <span style='color:#111;'> 3.79KB </span>","children":null,"spread":false},{"title":"locales","children":[{"title":"es.json <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"en.json <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"de.json <span style='color:#111;'> 70B </span>","children":null,"spread":false},{"title":"_README.md <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"fr.json <span style='color:#111;'> 84B </span>","children":null,"spread":false}],"spread":false},{"title":"cors.js <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false},{"title":"views.js <span style='color:#111;'> 4.86KB </span>","children":null,"spread":false},{"title":"blueprints.js <span style='color:#111;'> 8.91KB </span>","children":null,"spread":false},{"title":"models.js <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"i18n.js <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false}],"spread":false},{"title":"tasks","children":[{"title":"README.md <span style='color:#111;'> 3.06KB </span>","children":null,"spread":false},{"title":"config","children":[{"title":"cssmin.js <span style='color:#111;'> 480B </span>","children":null,"spread":false},{"title":"concat.js <span style='color:#111;'> 701B </span>","children":null,"spread":false},{"title":"less.js <span style='color:#111;'> 661B </span>","children":null,"spread":false},{"title":"uglify.js <span style='color:#111;'> 464B </span>","children":null,"spread":false},{"title":"sails-linker.js <span style='color:#111;'> 6.41KB </span>","children":null,"spread":false},{"title":"sync.js <span style='color:#111;'> 626B </span>","children":null,"spread":false},{"title":"coffee.js <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"watch.js <span style='color:#111;'> 719B </span>","children":null,"spread":false},{"title":"copy.js <span style='color:#111;'> 812B </span>","children":null,"spread":false},{"title":"jst.js <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"clean.js <span style='color:#111;'> 453B </span>","children":null,"spread":false}],"spread":false},{"title":"pipeline.js <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false},{"title":"register","children":[{"title":"buildProd.js <span style='color:#111;'> 191B </span>","children":null,"spread":false},{"title":"linkAssetsBuildProd.js <span style='color:#111;'> 290B </span>","children":null,"spread":false},{"title":"compileAssets.js <span style='color:#111;'> 154B </span>","children":null,"spread":false},{"title":"linkAssetsBuild.js <span style='color:#111;'> 282B </span>","children":null,"spread":false},{"title":"build.js <span style='color:#111;'> 147B </span>","children":null,"spread":false},{"title":"linkAssets.js <span style='color:#111;'> 245B </span>","children":null,"spread":false},{"title":"syncAssets.js <span style='color:#111;'> 136B </span>","children":null,"spread":false},{"title":"prod.js <span style='color:#111;'> 298B </span>","children":null,"spread":false},{"title":"default.js <span style='color:#111;'> 114B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".editorconfig <span style='color:#111;'> 166B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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