fix uploadFiles
code refine about upload file