Ah I see now you assign the var $tempFile which is a string to the file property.