added file attr to upload object