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

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -