const rp = require('request-promise'); const baseUrl = "https://uotmnewuat.icicibank.com/UOTM_data/api/upload"; const handleBase64Upload = (folder) => { return async (req, res, next) => { try { if (req.body.thumbmail) { console.log("Processing Base64 image"); let fileType; let base64Data = req.body.thumbmail; // Check if the Base64 string has a prefix const matches = base64Data.match(/^data:(.+);base64,(.+)$/); if (matches && matches.length === 3) { const mimeType = matches[1]; // Extract...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile