What to pass here so that I will get IPFS link?

router.post(’/get_and_convert’,upload.single(‘file’), async (req,res) => {

const imagestring = await uploadimage(req.file);

console.log(imagestring);

const imagefiles = new transaction({

     image : imagestring,

})

 

try {

    const dataToSave = await imagefiles.save();

    res.status(200).json(dataToSave)

}

catch (error) {

    res.status(400).json({ message: error.message })

}

})

//image to ipfs link

uploadimage = async(fileobj) => {

// console.log(fileobj);

// const data = fileInput.files[0];

const files = new Moralis.File(fileobj);     //what to pass here so that I will get IFS link ?

//console.log(files);

await files.saveIPFS({useMasterKey:true});

console.log(files.ipfs());

return files.ipfs();

}

That will be any type of data in base64 standard.