1
Я хочу, чтобы загрузить мои файлы изображений в моем s3 bucket.but получил ошибкуLaravel 5,2 AWS S3 Bucket Ошибка загрузки изображения
мой код
$image = $request->file('photo_one');
$imageFileName = time() . '.' . $image->getClientOriginalExtension();
$s3 = \Storage::disk('s3');
$filePath = '/products/' . $imageFileName;
$s3->put($filePath, file_get_contents($image), 'public');
My File System Configuration
's3' => [
'driver' => 's3',
'key' => 'xxxxx',
'secret' => 'xxxxx',
'region' => 'Oregon',
'bucket' => 'xxxxx',
],
Я получаю ошибку
Error executing "PutObject" on "https://s3.Oregon.amazonaws.com
/xxx/1455525865.jpeg"; AWS HTTP error: cURL
error 6: Could not resolve host: s3.Oregon.amazonaws.com
(see http://curl.haxx.se/libcurl/c/libcurl-errors.html)