- Go to http://www.gpsvisualizer.com/ and choose a file converter
- Click the link
Show additional file input boxes
- Open the developper tool's console
- Copy and paste the script below
Enjoy!
Show additional file input boxes
Enjoy!
(function () { | |
function _getRow(i) { | |
var tr = document.createElement('tr'); | |
tr.setAttribute('valign', 'middle'); | |
var s = "<td width=\"1%\">File #" + i + "</td><td width=\"99%\" style=\"width:250px; max-width:250px; overflow:hidden;\"><input type=\"file\" id=\"input:uploaded_file_" + i + "\" name=\"uploaded_file_" + i + "\"></td><td width=\"1%\"><div class=\"delete_box\" onclick=\"Reset_File_Input('input:uploaded_file_" + i + "');\" title=\"reset the file input\"></div></td>"; | |
tr.innerHTML = s; | |
return tr; | |
} | |
function _getContainer() { | |
return $$('#more_file_boxes tbody')[0]; | |
} | |
function _init() { | |
var qty = prompt('How many fields do you want? (>8)'); | |
if (qty) { | |
var container = _getContainer(); | |
for (var i = 9; i <= qty*1; i++) { | |
container.appendChild(_getRow(i)); | |
} | |
} | |
} | |
_init(); | |
})(); |