Lunny Xiao
2d0b90c967
* fix upload file type check * make the function simple and added tests * Update comment as per @silverwind