Upload files testing & improvements

can't we always cast it to lower case?