WL-122 Validate file input

@chrisndodge @griffresch  Kindly remview the change set.
Thanks