Possible fix for #8732

This commit is contained in:
snipe 2020-11-12 14:47:38 -08:00
parent c451fde466
commit 8a65081768

View file

@ -91,7 +91,7 @@ class MoveUploadsToNewDisk extends Command
for ($l = 0; $l < count($logos); $l++) { for ($l = 0; $l < count($logos); $l++) {
$type_count++; $type_count++;
$filename = basename($logos[$l]); $filename = basename($logos[$l]);
$new_url = Storage::disk('public')->url($logos[$l], file_get_contents($public_upload[$i])); $new_url = Storage::disk('public')->url($logos[$l], file_get_contents($public_upload[$l]));
$this->info($type_count.'. LOGO: '.$filename.' was copied to '.$new_url); $this->info($type_count.'. LOGO: '.$filename.' was copied to '.$new_url);
} }
@ -116,7 +116,7 @@ class MoveUploadsToNewDisk extends Command
$filename = basename($private_upload[$x]); $filename = basename($private_upload[$x]);
try { try {
Storage::disk('private_uploads')->put($private_type.'/'.$filename, file_get_contents($public_upload[$i])); Storage::put($private_type.'/'.$filename, file_get_contents($private_upload[$i]));
$new_url = Storage::url($private_type.'/'.$filename, $filename); $new_url = Storage::url($private_type.'/'.$filename, $filename);
$this->info($type_count.'. PRIVATE: '.$filename.' was copied to '.$new_url); $this->info($type_count.'. PRIVATE: '.$filename.' was copied to '.$new_url);