[current-page:node:content-type:machine-name] does not work for file uploads when adding content it only works for edit pages,
1. Add [current-page:node:content-type:machine-name] token on any file attached to any content type e.g. node
2. While adding a new node it does not replace the token with its value, instead just shows token
so to provide a fix to start with I am suggesting checking the route and if its node.add then add token from page arguments. e.g. if its /node/add/article we fetch article from url and then add it in tokens
in other cases wehere route is edit it will automatically fetch from node object in context
Active
2.0
Code