Edited the api to return file location