Added quotes to  download[type] = file