fixed issue with file size not being stored on the model