Here is the url i am getting from the local phone storage
"file:///storage/emulated/0/Pictures/1548694153266.jpg"
Should i really have to convert this to base64 to upload to s3. If so is there any good library out there to convert the local url from react native to base64
why is it important to convert this to base64?
What is the best way to go about it.
I can easily send images from local computer through postman. from postman i can select the image directly from computer as an image object. but in this case the url is not an image object?
exports.uploadProduct = async (req, res) => {
const uploads = await uploadMulti();
uploads(req, res, function (err) {
let imageFiles = req.files;
const productImages = new Array();
for (var i = 0; i < imageFiles.length; i++) {
fileLocation = imageFiles[i].location;
productImages.push(fileLocation)
}
console.log(productImages);
})
};