Pass the file object to resolve upload url