Skip to content

Commit

Permalink
Update ProjectFolderUpload.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bastihilger committed Aug 4, 2022
1 parent d6be63b commit d5338f5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Services/ProjectFolderUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ public function handle(Artist $artist, $data)
'category' => '',
'slideshow' => '',
];
ray($data);


$pathArr = explode('/', $data['originalPath']);

if (Str::startsWith($filename, '.')) {
Expand Down Expand Up @@ -168,10 +167,10 @@ protected function importFile($artist, $slideshow, $file, $filename)

$tmpPath = Storage::putFileAs('tmp/portfolio-uploads', $file, $filename);
Log::error($tmpPath);
Log::error(storage_path('app/'.$tmpPath));
$mediaItem = API::upload(storage_path('app/'.$tmpPath), null, $newFilename);
$response['status'] = 'success';
$response['reason'] = '';
Log::error(config('filesystems.disks.local.root').'/'.$tmpPath);
// $mediaItem = API::upload(storage_path('app/'.$tmpPath), null, $newFilename);
// $response['status'] = 'success';
// $response['reason'] = '';
} catch (Exception $e) {
Log::error($e);
}
Expand Down

0 comments on commit d5338f5

Please sign in to comment.