Add an input file type field by a click of a button

Add an input file type field by a click of a button

Hello, I am using JQuery for the first time i need the dinamacally genarate an input file after a button.
The objective is to make several uploads for files.
 soo here is the function:

  1.         $('button.add_input_file').click(function() {
  2.             $(this).after('<input type="file" />');
  3.         });
my button is like this:
  1. <input type="button" name="btnAdd_upload" value="" class="add_input_file">
Do i need to add more info to the button?