Rework TIC processing to use Storage::disk(). Implemented handling of replaces and files that already exist
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user