mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Possible fix for #8732
This commit is contained in:
parent
c451fde466
commit
8a65081768
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue