This commit is contained in:
marcio1002 2023-10-25 17:26:25 -03:00
parent 77d30bf9a8
commit f4734a92d3

View File

@ -115,7 +115,8 @@ class UsersWithSmartUsersImport implements ToCollection
$picture = new File($temp_file_path); $picture = new File($temp_file_path);
$pathS3 = "avatars/{$picture->hashName()}"; $pathS3 = "avatars/{$picture->hashName()}";
Storage::disk('s3')->missing($pathS3) && Storage::disk('s3')->put($pathS3, $picture->getContent()); Storage::disk('s3')->missing($pathS3) &&
Storage::disk('s3')->put($pathS3, $picture->getContent());
$filename = \preg_replace("/\.[^\.]+$/", "", $filename); $filename = \preg_replace("/\.[^\.]+$/", "", $filename);