Skip to content

Commit

Permalink
ensure version suffix on appendStream
Browse files Browse the repository at this point in the history
  • Loading branch information
iszmais authored and chfsx committed Feb 14, 2025
1 parent b000f67 commit 341bc0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/ILIAS/File/classes/class.ilObjFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public function appendSuffixToTitle(string $title, string $filename): string
*/
public function appendStream(FileStream $stream, string $title): int
{
$title = $this->ensureSuffix($title, pathinfo($stream->getMetadata('uri'))['extension'] ?? null);
if ($this->getResourceId() && $i = $this->manager->find($this->getResourceId())) {
$revision = $this->manager->appendNewRevisionFromStream($i, $stream, $this->stakeholder, $title);
} else {
Expand Down

0 comments on commit 341bc0f

Please sign in to comment.