Level 73
Did you maybe forgot to add environment variables in your .env file on production?
2 likes
I upload a image with livewire to s3 and it is work fine. the tempory file folder upload also works fine. now I move the app to production (laravel forge etc) and the upload dont works more.
i get the error :
Found 1 error while validating the input provided for the PutObject operation: [Bucket] is missing and is a required parameter
it's weird because local works and online doesn't. from my pc I can upload to s3. I inspect and I have a 500 Internal Server Error does anyone have any idea. has to do with s3 or is missing a parameter my code is:
public function createSerie() {
if (auth()->check()) {
$this->validate();
Serie::create([
'user_id' => auth()->id(),
'category_id' =>$this->category,
'status_id' => 1,
'title' =>$this->title,
'excerpt' =>$this->excerpt,
'description' =>$this->description,
'foto' => $this->foto->store('img', 's3'),
]);
session()->flash('success_message', 'Uhuu');
$this->reset();
}else{
abort(Response::HTTP_FORBIDDEN);
}
}
Did you maybe forgot to add environment variables in your .env file on production?
Please or to participate in this conversation.