diff --git a/ckanext/files/storage/fs.py b/ckanext/files/storage/fs.py index fa391f8..9eaf9da 100644 --- a/ckanext/files/storage/fs.py +++ b/ckanext/files/storage/fs.py @@ -131,6 +131,12 @@ def multipart_refresh( data: MultipartData, extras: dict[str, Any], ) -> MultipartData: + filepath = os.path.join( + str(self.storage.settings["path"]), + data.location, + ) + data.storage_data["uploaded"] = os.path.getsize(filepath) + return data def multipart_update(