arvindr21 / blueimp-file-upload-expressjs

A simple express module for integrating jQuery File Upload.
http://expressjs-fileupload.cloudno.de/
104 stars 69 forks source link

Upload to S3, but request aborted. #4

Closed EricCat closed 10 years ago

EricCat commented 10 years ago

I use this module upload file to s3. but when uploading, it report aborted.

form.on('aborted', function () {
            console.log('I\'m aborted');
   tmpFiles.forEach(function (file) {
                fs.unlink(file);
   });
});

But I can't catch any available info, just knew it maybe cause by formidable req.on('aborted'). Is there any other way to upload to S3?

arvindr21 commented 10 years ago

@EricCat If you check the docs of formidable, aborted will be

Emitted when the request was aborted by the user. Right now this can be due to a 'timeout' or 'close' event on the socket. In the future there will be a separate 'timeout' event (needs a change in the node core).

Can you please check the connection?

The flow would be :: Client Machine >> Server tmp folder >> S3, so the file is not reaching the server.

EricCat commented 10 years ago

@arvindr21 Thanks.