Constructing a multipart/form-data in javascript in the modern era -


i've got jpg, resized canvas, recovered data url (base64 encoded). want post it. base64 being 35% heavier binary data, should try , construct multipart/form-data, image sent attachment. in old days, have tried formdata object like this. zippy npm http clients hoping there might proper library this. request promises me, it's choking webpack, , looks it's not used in browser. how can this? persevere request? go formdata?


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -