We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d55bd56 commit b71e948Copy full SHA for b71e948
src/MultipartStream.php
@@ -89,7 +89,7 @@ private function addElement(AppendStream $stream, array $element): void
89
90
if (empty($element['filename'])) {
91
$uri = $element['contents']->getMetadata('uri');
92
- if ($uri && \is_string($uri) && \substr($uri, 0, 6) !== 'php://') {
+ if ($uri && \is_string($uri) && \substr($uri, 0, 6) !== 'php://' && \substr($uri, 0, 7) !== 'data://') {
93
$element['filename'] = $uri;
94
}
95
0 commit comments