I have encountered the same issue, and I think it’s a actually a bug in the WPDM Pro code. Below is a fix.
/wp-content/plugins/download-manager/src/Admin/Menu/Packages.php lines 122–138:
`foreach ( $meta_value as &$value ) {
$value = wpdm_escs( $value );
if ( ! __::is_url( $value ) ) {
if ( WPDM()->fileSystem->isBlocked( $value ) ) {
$value = ”;
}
$abspath = WPDM()->fileSystem->locateFile( $value );
if ( ! WPDM()->fileSystem->allowedPath( $abspath ) ) {
$value = ”;
}
}
}
unset( $value );// ← INSERT THIS LINE
$meta_value = array_unique( $meta_value );`
The $value variable needs to be reset between the foreach loops.
The above fix is working for us.