Updated file model to pass up attributes array in contructor