heres my issue: I want this to lazy mint mp3 files
So how do we get mp3 to upload into our dap? this next line is the input form-control in my html I was thinking id just use
accept=“music/mp3”.
<div class="form_element">
                    <input class="form-control" type="file" accept="image/png, image/jpeg" id="input_image" name="image" placeholder="upload a file">
                </div>
but i dont know if i need to have 2 seperat ids for the image and music or combine it into one, from what i can see i think i need 2 ids but idk how to handle that
Also on the backend there is the js:
im assuming these are the lines in the .js file that need to be changed
async function submit(){
  // get image data 
  const input = document.querySelector("#input_image");
  let data = input.files[0]
  // upload image to ipfs
  const imageFile = new Moralis.File(data.name, data)
  await imageFile.saveIPFS();
  let imageHash = imageFile.hash();
Its from filips latest lazy mint tutorial. My repo https://github.com/MontyWilliams/nft_721_mint.git
 
      
    