WL-122 Validate file input
Merge pull request #5864 from edx/asadiqbal08/WL-122

WL-122 Validate file input