diff --git a/lando/worker/staging.py b/lando/worker/staging.py
index 9d8680a..e54474f 100644
--- a/lando/worker/staging.py
+++ b/lando/worker/staging.py
@@ -146,7 +146,7 @@ class DownloadDukeDSFile(object):
         dds_file = dds_client.get_file_by_id(self.file_id)
         logging.info("Downloading file id:{} to {}".format(self.file_id, self.dest))
         dds_file.download_to_path(self.dest)
-        FileUrlDownloader.check_file_size(dds_file.current_version['size'], self.dest)
+        FileUrlDownloader.check_file_size(dds_file.current_version['upload']['size'], self.dest)
 
 
 class DownloadURLFile(object):

Error in new DukeDSClient download
```
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/lando/worker/worker.py", line 186, in run
    self.func(working_directory, self.payload)
  File "/usr/local/lib/python3.5/dist-packages/lando/worker/worker.py", line 82, in stage_files
    download_file.run(staging_context)
  File "/usr/local/lib/python3.5/dist-packages/lando/worker/staging.py", line 149, in run
    FileUrlDownloader.check_file_size(dds_file.current_version['size'], self.dest)
KeyError: 'size'
```

It should be `current_version['upload']['size']`. This is a bug from PR #192. I must have accidentally tested that PR with an older bespin worker VM.
diff --git a/lando/worker/tests/test_staging.py b/lando/worker/tests/test_staging.py
index 09bd3c2..1c2edbb 100644
--- a/lando/worker/tests/test_staging.py
+++ b/lando/worker/tests/test_staging.py
@@ -125,4 +125,4 @@ class TestDownloadDukeDSFile(TestCase):
         mock_dds_file = mock_duke_ds_client.return_value.get_file_by_id.return_value
         mock_dds_file.download_to_path.assert_called_with('/bespin/data/input.txt')
         mock_file_url_downloader.check_file_size.assert_called_with(
-            mock_dds_file.current_version['size'], '/bespin/data/input.txt')
+            mock_dds_file.current_version['upload']['size'], '/bespin/data/input.txt')

pip install -e .
parse_log_pytest
pytest
nose==1.3.7 pytest
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
adal==1.2.7
appdirs==1.4.4
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
cachetools==4.2.4
certifi==2021.5.30
cffi==1.15.1
chardet==3.0.4
cryptography==40.0.2
decorator==5.1.1
dogpile.cache==1.2.2
DukeDSClient==2.1.4
future==1.0.0
google-auth==2.22.0
humanfriendly==2.4
idna==2.7
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1631916693255/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
iso8601==1.1.0
Jinja2==2.10.1
jmespath==0.10.0
jsonpatch==1.32
jsonpointer==2.3
keystoneauth1==5.1.3
kubernetes==8.0.1
-e git+https://github.com/Duke-GCB/lando.git@042ae53c0ad0ab0dc309100ecaa549bd0987cd4a#egg=lando
lando-messaging==1.0.0
Markdown==2.6.9
MarkupSafe==2.0.1
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
netifaces==0.11.0
nose==1.3.7
oauthlib==3.2.2
openstacksdk==1.5.1
os-client-config==2.1.0
os-service-types==1.7.0
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
pbr==6.1.1
pika==0.10.0
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pyasn1==0.4.8
pyasn1-modules==0.3.0
pycparser==2.21
PyJWT==2.4.0
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
python-dateutil==2.6.0
pytz==2025.2
PyYAML==5.1
requests==2.20.1
requests-oauthlib==2.0.0
requestsexceptions==1.4.0
rsa==4.9
shade==1.29.0
six==1.17.0
stevedore==3.5.2
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
urllib3==1.24.3
websocket-client==1.3.1
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: lando
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib-metadata=4.8.1=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - adal==1.2.7
      - appdirs==1.4.4
      - cachetools==4.2.4
      - cffi==1.15.1
      - chardet==3.0.4
      - cryptography==40.0.2
      - decorator==5.1.1
      - dogpile-cache==1.2.2
      - dukedsclient==2.1.4
      - future==1.0.0
      - google-auth==2.22.0
      - humanfriendly==2.4
      - idna==2.7
      - iso8601==1.1.0
      - jinja2==2.10.1
      - jmespath==0.10.0
      - jsonpatch==1.32
      - jsonpointer==2.3
      - keystoneauth1==5.1.3
      - kubernetes==8.0.1
      - lando-messaging==1.0.0
      - markdown==2.6.9
      - markupsafe==2.0.1
      - netifaces==0.11.0
      - nose==1.3.7
      - oauthlib==3.2.2
      - openstacksdk==1.5.1
      - os-client-config==2.1.0
      - os-service-types==1.7.0
      - pbr==6.1.1
      - pika==0.10.0
      - pyasn1==0.4.8
      - pyasn1-modules==0.3.0
      - pycparser==2.21
      - pyjwt==2.4.0
      - python-dateutil==2.6.0
      - pytz==2025.2
      - pyyaml==5.1
      - requests==2.20.1
      - requests-oauthlib==2.0.0
      - requestsexceptions==1.4.0
      - rsa==4.9
      - shade==1.29.0
      - six==1.17.0
      - stevedore==3.5.2
      - urllib3==1.24.3
      - websocket-client==1.3.1
prefix: /opt/conda/envs/lando

lando/worker/tests/test_staging.py::TestDownloadDukeDSFile::test_run
lando/worker/tests/test_staging.py::TestSaveJobOutput::test_create_project_name lando/worker/tests/test_staging.py::TestSaveJobOutput::test_get_details lando/worker/tests/test_staging.py::TestSaveJobOutput::test_get_dukeds_username lando/worker/tests/test_staging.py::TestSaveJobOutput::test_run lando/worker/tests/test_staging.py::TestDukeDataService::test_share_project lando/worker/tests/test_staging.py::TestProjectDetails::test_constructor
lando/worker/staging.py
lando/worker/staging.py