Add get api for file