What is the correct way to rename an uploaded file using tokens?
I had the same issue. The answer was buried way down in Browse available tokens.
I wanted to rename an uploaded file based on the responses to the last_name and first_name fields. The pattern that worked was [webform_submission:values:last_name]_[webform_submission:values:first_name].