I am using a MEANJS stack, I upload an image using ng-flow and save the imgsrc as base64 url.
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARkAAACzCAYAAAC94Gg
You can add following to express config:
app.use(bodyParser.urlencoded({limit: '50mb'})); app.use(bodyParser.json({limit: '50mb'}));
Basically you need to configure Express webserver to accept bigger request size. Replace 50mb with whatever maxsize you want to accept.
50mb
Hope this helps!!!