Clients can upload files by using a Multi-part form post to my node.js application. To handle the file upload I m using the node-formidable library.
Now, I manage to upload the file in chunks to node but I don t want it to be buffered before it s written to disk. So, I m trying to understand how I can write the file data chunks to disk when they re received. I don t fully understand the node-formidable api how to acheive.
一个人可以举一个简单的例子,说明如何聆听新档案,建立一个档案库,然后获取数据,并将数据写到上游,最后关闭溪流。
帮助!