I am trying to upload a file to AWS s3 bucket
public function fileTest(Request $request)
{
//this will create folder test inside my bucket and put the contents
$request->file->store('test','s3');
}
But the above code will create a folder named test
inside my bucket and put the file into it.
But i want to directly upload to the bucket
$request->file->store('s3');
I've tried above code but dosen't worked.