No result from ipfs.add ()

Guys can you please help me in solving this issue wile adding images i’m not getting any result.

Expected : hash value of the submitted file and location .

Code.

onSubmit = (event) => {
event.preventDefault()
console.log(‘Submitting the file’)
ipfs.add(this.state.buffer, (error, result) => {
console.log(‘Ipfs result’, result)
if(error){
console.error(error)
return
}
})

Hi @jaws.action, and welcome to the Infura community! You can check out a step-by-step way to upload files to Infura here. Let us know if you have any further questions!