Use a file token for directory path when uploading a file via core file upload field?
In core this is not possible, because the file widget sets the #upload_location when it builds the form element.

You need a module, for example File (Field) Paths. This module sets a temp path in #upload_location of the form element and sorts this out later when the file and node entity are available.