Skip to content

v1.0.4

Choose a tag to compare

@apsonex apsonex released this 22 Sep 18:09
· 8 commits to master since this release

Implement "saveUploadedFileUsing" in File.php. Use streams now.

if ($component->getVisibility() === 'public') {
    $res = $component->getDisk()->writeStream(
        $location,
        $file->readStream(),
        ['public'],
    );
} else {
    $res = $component->getDisk()->writeStream(
        $location,
        $file->readStream(),
    );
}