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 d979160 commit d6be63b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Services/ProjectFolderUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,12 @@ protected function importFile($artist, $slideshow, $file, $filename)

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

0 comments on commit d6be63b

Please sign in to comment.