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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -