This feature needs "Archive the Artifacts" and "Publish Artifacts as Documents" run in a order.
The running order of publishers can be controlled since Jenkins 1.463 (jenkinsci/jenkins@047fdda91fa60ca3608e1940647f0bb94d62be8d).