and the code inside the function:
Moralis.initialize(this.appID);
Moralis.serverURL = this.server;
const file_input = document.getElementById('file');
const data = file_input.files[0];
const file = new Moralis.File('video8.mp4', data);
await file.saveIPFS();
console.log(file.hash());
console.log(file.ipfs());