Added method to resolve file URI