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: 'vtapi/v2/file/scan',
formData: formData
};
request.post(options, function(err, res, body) {
console.log(body);
});