Use {{ form.XXX.vars.id }} for input tag id attribute
Adding bootstrap fileupload files
Use filter to get only published page