Hey @Mahima and welcome to the IPFS forum,
Can you share more information about the output you are getting from the line:
console.log(document.getElementById("input").files[0]);
Can you share a link to a repository link you can share?
Also I saw you also opened Uncaught (in promise) Error: missing input file(s) - Error while uploading the file using web3Storage - #3 by Mahima. Please avoid creating multiple threads for the same problem.