Closed mrbrianevans closed 2 years ago
When an image is uploaded, it currently reads the bytes into a string. It should rather call createURL() and return an object like this:
{ "url":"localhost:5000/zxqpoiwalksdfnma.jpg", "originalName": "image1.jpg", "altText": "portrait", "width": 400, "height": 600 }
This will allow it to later be displayed using an img tag
img
When an image is uploaded, it currently reads the bytes into a string. It should rather call createURL() and return an object like this:
This will allow it to later be displayed using an
img
tag