meteor - Iron Router handle post data (file) on server -


It looks like you can define postal routes on the server and answer them - by looking at the document for iron router, though i can not see how to get the data posted. With the following coffee-script code:

  router. Return '/ test', where: 'server' .post - & gt; Console.log @request@response.end 'Hello \ n'  

I can request a post (form-data with JPG image) and get a 'Hello' response But the requested file / data requested on the console @log @ server is not included anywhere - I was expecting to find it in the request. Anything is empty .. Any thoughts?

In view of the logic behind this, large amounts of image uploads have to be handled by the client from time to time on the server. Colfifax, although binary / data designed for uploads seems to be that it and node process rocket The CPU seems to be very slow to use, so I'm seeing the cheapest way to transfer files.

Iron router got a solution through the busboy in the Gitob issue:


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -