Howdy, i got to get some sleep so i thought i would ask here.
I am trying to get the save file url but its not useable for me.
i get an options function back and not sure what to do with it.
const inputImage = document.getElementById("input_image").value.split("\\");
const inputImageName = inputImage[inputImage.length - 1];
const imageFileUploadControl = $("#input_image")[0];
if (imageFileUploadControl.files.length > 0) {
const file = imageFileUploadControl.files[0];
const imageFile = new Moralis.File(inputImageName, file);
await imageFile.save()
musix.image = imageFile.url;
console.log(imageFile);
console.log(musix.image);
} else {
console.log(musix.image);
}
Thanks, i should be up in a few hours.