added Metadata as a parameter in fileUpload for setting metas