hi, I want to ask how to pre put the image to be save not from the input type=“file” but from a link in AWS. Like this photo https://s3.ap-southeast-1.amazonaws.com/amethaverse.io/assets/images/test_1.png
nftFile.files[0] from the <input id=“nftFile” type="file>
This code works, when choosing the photo. I want the photo to be already selected.
const nftFileMint = new Moralis.File("nft.jpg", nftFile.files[0]);
await nftFileMint.saveIPFS();
Will this code work?
const test = new Moralis.File("image.png", {base64 : btoa(JSON.stringify("https://s3.ap-southeast-1.amazonaws.com/amethaverse.io/assets/images/test_1.png"))});
await test.saveIPFS();