Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support posting data #5

Open
rufuspollock opened this issue May 1, 2013 · 1 comment
Open

Support posting data #5

rufuspollock opened this issue May 1, 2013 · 1 comment

Comments

@rufuspollock
Copy link
Member

Then we can pipe from local using curl!

Notes on Getting Streaming Data in Express

Express as of 3.0 has a pretty neat bodyParser middleware that will take care of normal posts, file uploads etc. However, it does not give streaming access to uploads AFAICT.

// multipart form upload will give us
req.files
// 

Write your own

req.on('data', function(chunk) { 
       data += chunk;
    });

Though you may need to selectively disable bodyParser - see http://stackoverflow.com/questions/11295554/how-to-disable-express-bodyparser-for-file-uploads-node-js

Other random notes

@rufuspollock
Copy link
Member Author

Hmmm, seems handling streaming posts / files is not as trivial as I thought in node. Updated notes on what i've found in the issue description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant