Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bastihilger committed Aug 4, 2022
1 parent 19d3fc2 commit 3c23a5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Services/ProjectFolderUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,16 @@ protected function importFile($artist, $slideshow, $file, $filename)
}

$mediaItem = MediaModel::where('original_name', $filename)->first();
Log::debug($filename);
Log::debug($mediaItem);
Log::error($filename);
Log::error($mediaItem);
if (! $mediaItem) {
try {
$tmpPath = Storage::putFileAs('tmp/portfolio-uploads', $file, $filename);
$mediaItem = API::upload(storage_path('app/'.$tmpPath), null, $newFilename);
$response['status'] = 'success';
$response['reason'] = '';
} catch (Exception $e) {
Log::debug($e);
Log::error($e);
}
} else {
$response['reason'] = 'already exists';
Expand Down

0 comments on commit 3c23a5a

Please sign in to comment.