Add file param to URL function call

Add a file param to the URL funciton call so we can switch based
on the file's properties.