1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

ZIP Exports: Added working image handling/inclusion

This commit is contained in:
Dan Brown
2024-10-21 13:59:15 +01:00
parent 06ffd8ee72
commit 4fb4fe0931
7 changed files with 148 additions and 18 deletions

View File

@@ -55,6 +55,15 @@ class ImageStorageDisk
return $this->filesystem->get($this->adjustPathForDisk($path));
}
/**
* Get a stream to the file at the given path.
* @returns ?resource
*/
public function stream(string $path): mixed
{
return $this->filesystem->readStream($this->adjustPathForDisk($path));
}
/**
* Save the given image data at the given path. Can choose to set
* the image as public which will update its visibility after saving.