We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb4406e commit f17f662Copy full SHA for f17f662
src/Files/DTO/File.php
@@ -428,11 +428,7 @@ public static function fromArray(array $array): File
428
if (!isset($array['mimeType']) || !isset($array['base64Data'])) {
429
throw new \InvalidArgumentException('Inline file requires mimeType and base64Data.');
430
}
431
- // Create data URI from base64 data and mime type
432
- $mimeType = $array['mimeType'];
433
- $base64Data = $array['base64Data'];
434
- $dataUri = sprintf('data:%s;base64,%s', $mimeType, $base64Data);
435
- return new self($dataUri);
+ return new self($array['base64Data'], $array['mimeType']);
436
437
438
0 commit comments