Skip to content

Commit

Permalink
Update MediaAPIController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
marioSantos97 committed Sep 7, 2022
1 parent 10dbdc3 commit e31db92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/Http/Controllers/API/MediaAPIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ private function mediaCloudRequest(Request $request)
// Make request to media cloud
$file = fopen(Storage::disk(config('file-manager.tmp_disk'))->path('/' . $tmpFilePath), 'r');
$response =
Http::acceptJson()
Http::withoutVerifying()
->acceptJson()
->attach('file', $file, $originalFilename)
->post(
env('MEDIA_CLOUD_ENDPOINT'),
Expand Down

0 comments on commit e31db92

Please sign in to comment.