mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-27 00:13:59 +00:00
Laravel Vapor - Fix path to upload documents to S3 bucket with dynamic path
This commit is contained in:
@@ -73,12 +73,7 @@ class DocumentObject implements DataTransferObject
|
||||
*/
|
||||
public function getFiles(): array
|
||||
{
|
||||
$filePath = $this->path;
|
||||
$filesystemDriver = Storage::getDefaultDriver();
|
||||
if($filesystemDriver == 's3'){
|
||||
$filePath = 'documents/'.$this->path;
|
||||
}
|
||||
return (new ConvertsBase64ToFile($filePath))->convert($this->files);
|
||||
return (new ConvertsBase64ToFile($this->path))->convert($this->files);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user