我上的应用程序开发人员重写角,的NodeJS,Expressjs和Couchbase。我的任务之一是上传到Web服务器的各种平面文件。角的NodeJS的FileUpload使用客户机/服务器模式
人说看到一个特别的问题,在混帐或NPM或的jsfiddle等特定链接之前,我已查看了所有这些网站,并没有找到适合的设计开发风格的例子。该环境包括以下内容: 控制器会谈,表示层 控制器会谈,客户端服务 客户端服务,会谈到服务器端控制器。
我试图从jejenny/zg9re链接jsfiddle.net使用,但遇到了一个问题。看起来她的例子是为客户端处理设置的。 $ 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
如果没有你的代码,这是非常没有意义的。 –
代码示例使用http://jsfiddle.net/jejenny/zg9re –