skip to Main Content

Send file to api using Ajax – Jquery ajax

Im trying to send file to api using ajax , but form-data always null in both cases mentioned below <form id="myformdoc"> <input type="file" size="45" name="file" id="file"> </form> <script> $('#file').on("change", function () { // var formdata = new FormData($('form').get(0)); let myForm…

VIEW QUESTION
Back To Top
Search