I have existing ruby site with a big csv file I need to upload, process and 
send some progress info to the browser and to a mysql.
I decided to do that upload + process in node by POSTING to my node server 
and use socket.io to push some stats back to the browser.

I have a form with action='127.0.0.0:3001' 
the problem I have is I don't see the request coming to my server. here is 
the client and the server code: 


//index.html

<!DOCTYPE html>
<html>
  <head>
    <title>File Upload</title>
  </head>
  <body>
    <form *action="127.0.0.1:3001"* enctype="multipart/form-data" 
method="post">
      <input type="text" name="title">
      <input type="file" name="uplmad" multiple="multiple">
      <input type="submit" value="Upload">
    </form>
  </body>
</html>

// server.js
var http = require('http');

http.createServer(function(req, res) {
  console.log('request coming');
  res.end();
}).listen(3001);

console.log('listen on 3001');


also, correct me if i understand my options here:

1) have my node server on the same machine that runs my ruby. 
use the same host with different port by using reverse-proxy such as nginx.

2) have my node server on different machine, the form's action will be 
'my-node-server.com'

the downside of #1 is some performance hit due to the reverse proxy.
is there any downside for #2? maybe something to do with ajax requests or 
socket.io?

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to