Use path info for file extension