Rework TIC processing to use Storage::disk(). Implemented handling of replaces and files that already exist

This commit is contained in:
2023-09-23 22:01:18 +10:00
parent 56544b89e1
commit ff04de52b5
10 changed files with 199 additions and 105 deletions

View File

@@ -86,12 +86,12 @@ trait Import
if ($file instanceof File) {
$path = sprintf('import/%s.%d',$key,$file->id);
Storage::disk('local')->put($path,Storage::get($file->full_storage_path));
Storage::disk(config('fido.local_disk'))->put($path,Storage::get($file->rel_name));
return Storage::disk('local')->path($path);
return Storage::disk(config('fido.local_disk'))->path($path);
} else {
return Storage::disk('local')->path($file);
return Storage::disk(config('fido.local_disk'))->path($file);
}
}
}