diff --git a/src/http/write.js b/src/http/write.js
index <HASH>..<HASH> 100644
--- a/src/http/write.js
+++ b/src/http/write.js
@@ -30,23 +30,14 @@ const mfsWrite = {
 
     const fileStream = await new Promise((resolve, reject) => {
       const parser = multipart.reqParser(request.payload)
-      let fileStream
 
       parser.on('file', (_, stream) => {
-        if (fileStream) {
-          return reject(Boom.badRequest('Please only send one file'))
-        }
-
-        fileStream = stream
+        resolve(stream)
       })
 
       parser.on('error', (error) => {
         reject(error)
       })
-
-      parser.on('end', () => {
-        resolve(fileStream)
-      })
     })
 
     await ipfs.files.write(arg, fileStream, {
fix: parser does not end until file data is consumed

License: MIT