Avoid setting format parameter when getting a file