NodeJS - Upload 36MB file to VirusTotal failing

0 votes

I'm trying to upload a 36MB zip file to Virus Total using NodeJS and their public API. I'm having trouble uploading right now, and I'm not sure what to do next to remedy it. Their API has no file size restrictions, while their frontend uploader has a 128MB upload limit.

<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>413 Request Entity Too Large</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Request Entity Too Large</h1>
<h2>Your client issued a request that was too large.
</h2>
<h2></h2>
</body></html>

The code is straightforward and straightforward, but I'm stumped as to how to solve it. Any assistance is greatly appreciated.

var request = require('request');
var fs = require('fs');

var formData = {
  file: fs.createReadStream('./path/to/file.zip'),
  apikey: 'public-vt-apikey'
};

var options = {
  url: 'https://www.virustotal.com/vtapi/v2/file/scan',
  formData: formData
};

request.post(options, function(err, res, body) {
  console.log(body);
});

May 27 in Node-js by Vaani
• 7,020 points
38 views

1 answer to this question.

0 votes
The VirusTotal file/scan API request has a 32MB restriction. If you have a solid use case for scanning huge files, you can request access to VirusTotal's larger file API call, which can handle files up to 200MB.
answered May 27 by Neha
• 8,560 points

Related Questions In Node-js

0 votes
1 answer

How to create an Excel File with Nodejs?

Hello @kartik, Just create a file with Tabs ...READ MORE

answered Sep 7, 2020 in Node-js by Niroj
• 82,740 points
1,147 views
0 votes
1 answer

How to provide a mysql database connection in single file in nodejs?

Hello @kartik, You could create a db wrapper ...READ MORE

answered Oct 15, 2020 in Node-js by Niroj
• 82,740 points
4,325 views
0 votes
1 answer

How to run shell script file using nodejs?

Hello @kartik, You could use "child process" module ...READ MORE

answered Oct 16, 2020 in Node-js by Niroj
• 82,740 points
4,477 views
0 votes
0 answers

Issue in blob storage to fileShare big file transfer : Using fileRange (nodejs Cloud function)

To file a problem with blob storage ...READ MORE

Jun 13 in Node-js by Vaani
• 7,020 points
43 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
998 views
0 votes
1 answer
0 votes
1 answer

Start script missing error when running npm start

It seems that there is an undefined ...READ MORE

answered Feb 10 in Java by Soham
• 8,740 points
2,155 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP