The regex for the $contentDisposition and $boundaryMatches where incorrect. Somehow the regex changed between versions.
It works now.