Create the method to convert file path to public url, and the opposite