javascript - Request entity too large error for PNG Image on S3 -
i had entity large error when trying upload image amazon s3. strange thing has error png file merely have 85kb size.
i tried other png has more hundred kb didn't error.
var data = { key: file_name, body: buffer, contentencoding: 'base64', contenttype: 'image/jpeg' }; s3bucket.putobject(data, function(err, data){ if (err) { console.log(err); res.send({result:0}); } else { res.send({result:1,file_name:file_name}); } });
Comments
Post a Comment