【发布时间】:2016-10-15 15:02:56
【问题描述】:
我是一名开发人员,负责将应用程序重写为 Angular、NodeJS、Expressjs 和 Couchbase。我的任务之一是将各种平面文件上传到网络服务器。
在人们说要查看特定问题、git 或 npm 或 jsfiddle 等中的特定链接之前,我已经查看了所有这些网站,但没有找到适合设计开发风格的示例。环境由以下部分组成: 控制器与表示层对话 控制器与客户端服务对话 客户端服务与服务器端控制器对话。
我曾尝试使用 jsfiddle.net 中的 jejenny/zg9re 链接,但遇到了问题。看来她的示例是为客户端处理设置的。 $http.post 发生在客户端。
当我尝试将文件发布到网络服务器时出现问题,我的代码执行如下:
Controller passes the request to client side service
Client side service passes the request to the server side controller
But the client side service is not adding the file to webserver
I cannot figure out what is the code on the server side controller
我希望找到:
Explanation on how to split code in jsfiddle.net/jejenny/zg9re into client server side request to server side controller.
OR
A web example that perform the code using the client side service passing file to the server side controller to upload to the webserbver
TIA
【问题讨论】:
-
没有你的代码,这毫无意义。
-
使用的代码示例jsfiddle.net/jejenny/zg9re
标签: angularjs node.js express file-upload couchbase