All markup must be wrapped in a form, here's the markup for the form. <form id="fileupload" action="/path/to/your/controller/ext" method="POST" type="multiplart/form-data">...everything below this goes in here </form> This is the markup for creating a 'Start Upload' button. <button class="btn btn-primary start" type="submit"> <span>Start upload</span> </button> Here's the markup for creating a 'Ad