Allow an object that implements the FileInterface to be passed to the Resource model.