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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user