Pass the file object to resolve upload url

It may be useful for `resolveUploadUrl` to have access to the `file` object.