local file
fix file type bug
support for file type