Tom PRO said about 2 years ago on Cropping Active Storage Uploads :
More information, for those reading above - 7.0.1 issues appear to be related to:

https://github.com/rails/rails/issues/43971
and
https://github.com/rails/rails/pull/44287/files

It looks like the change that breaks this episode's code (requiring that you specify

constructor(file, checksum, url, directUploadToken, attachmentName)
instead of
constructor(file, checksum, url)

has been reverted, and may make it to a future release, before being redesigned - this episode's code works again on rails main branch, for instance.