title: aws s3 file upload request timeout
body: <pre><code> var fileStream = fs.createReadStream(file.file[0].path);
      var fileName = randomInteger+'_'+file.file[0].originalFilename;
      fileStream.on('error', function (err) {
          if (err) { 
              console.log(err);
              reject(err); 
          }
      });
      fileStream.on('open', function () {
          var s3 = new AWS.S3();
          s3.putObject({
              Bucket: bucketName,
              Key: fileName,
              Body: fileStream,
          }, function (err, data) {
              if (err) {
                  console.log(err);
                  reject(err);
              }else{
                  var uploadUrl = "https://s3-eu-west-1.amazonaws.com/" + bucketName+ "/" + fileName;
                  resolve(uploadUrl);
              }
          });
      });
  </code></pre>
  
  <p>I tried to upload files to s3 bucket but it throws request timeout error
  error was threw in the first time of upload if i upload it 2nd 3rd time upload work without any errors</p>