I want to submit a form with a file programmatically but i learned there is no way to pass file to input type="file" because of security. So i am searching a way to submit form with file from url. Html is below.
           <form class="converter-form" id="iri-converter-form">
            <label for="iri-converter-input">Custom Ontology:</label>
            <input type="text" id="iri-converter-input" placeholder="Enter ontology IRI">
            <button type="submit" id="iri-converter-button" disabled>Visualize</button>
          </form>
          <div class="converter-form">
            <input class="hidden" type="file" id="file-converter-input" autocomplete="off">
            <label class="truncate" id="file-converter-label" for="file-converter-input">Select ontology file</label>
            <button type="submit" id="file-converter-button" disabled>
              Upload
            </button>
          </div>
 
     
    