maybe an error response should be returned here if $file is null, nothing to update.