Fixed streamfile method, file name is actually in filename parameter