// Change to our secure-attachment disk if any of the local options
// are used to prevent escaping that location.
- if ($storageType === 'local' || $storageType === 'local_secure') {
+ if ($storageType === 'local' || $storageType === 'local_secure' || $storageType === 'local_secure_restricted') {
$storageType = 'local_secure_attachments';
}
return 'uploads/files/' . $path;
}
- /**
- * Get an attachment from storage.
- *
- * @throws FileNotFoundException
- */
- public function getAttachmentFromStorage(Attachment $attachment): string
- {
- return $this->getStorageDisk()->get($this->adjustPathForStorageDisk($attachment->path));
- }
-
/**
* Stream an attachment from storage.
*