Andy McKay

Mar 10, 2008

Multiple file drag and drop in Air

If you are dragging multiple files into your Air and you need to grab them, make sure you do the following:

function dropHandler(event) {
    var files = new Array;
    files = event.dataTransfer.getData("application/x-vnd.adobe.air.file-list")

That mime-type is what you need to get a file list and not just the last file.