take input file from public dir