diff --git a/dvc/fs/base.py b/dvc/fs/base.py
index <HASH>..<HASH> 100644
--- a/dvc/fs/base.py
+++ b/dvc/fs/base.py
@@ -273,7 +273,7 @@ class FileSystem:
         callback: FsspecCallback = DEFAULT_CALLBACK,
         **kwargs,
     ) -> None:
-        size = kwargs.get("size")
+        size = kwargs.pop("size")
         if size:
             callback.set_size(size)
         if hasattr(from_file, "read"):
fs: do not pass size to underlying fs.put_file