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, 2022 in Node-js by Vaani
• 7,020 points
204 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, 2022 by Neha
• 8,940 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,840 points
1,632 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,840 points
6,355 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,840 points
5,773 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, 2022 in Node-js by Vaani
• 7,020 points
243 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
1,272 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, 2022 in Java by Soham
• 9,700 points
3,319 views
0 votes
1 answer

How to host MEAN stack application with Angular and nodejs on windows IIS

It's fine that you're using Angular. Be ...READ MORE

answered May 27, 2022 in Node-js by Neha
• 8,940 points
547 views
0 votes
1 answer

How to schedule a google meet and get the meet link in NodeJs?

To create a Google Meet, you'll need ...READ MORE

answered May 27, 2022 in Node-js by Neha
• 8,940 points
2,041 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP