Skip to content

Commit ad17f65

Browse files
committed
fix visibility of thumbs to third-party cloud storages
1 parent 9fa7edb commit ad17f65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FileApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private function saveThumb($img, $original_name, $suffix)
246246
// save thumbnail image
247247
imagepng($tmp_thumb, $tmp_path . $tmp_filename);
248248
$tmp_file = \Storage::disk('local')->get($tmp_filename);
249-
Storage::put($thumb_name, $tmp_file);
249+
Storage::put($thumb_name, $tmp_file, $this->visibility);
250250

251251
// remove tmp image
252252
Storage::disk('local')->delete($tmp_filename);

0 commit comments

Comments
 (0)