Allow arbitrary Content-Disposition in REST uploads

Fixes issues #19770
Merge branch '4.0/rest-content-disposition' into 4.0-trunk