The Laravel Filesystem (http://laravel.com/docs/5.1/filesystem) can be set up to use S3 which abstracts away all of the specifics and allows you to just use the Storage facade API. Does that solve your issue?
Nov 10, 2015
7
Level 6
AWS S3 and filesystem
Is there any good tutorials on how to implement s3 on a laravel app. The docs lack information so I'm finding it hard to get it working. Could anyone share a step by step guide?
Edit:
- im trying to creat a folder using this code:
Storage::disk('s3')->makeDirectory('users/' . $request->input('username'));
and imports
use Storage;
use League\Flysystem\Filesystem;
- Ive tried to use: https://packagist.org/packages/league/flysystem-aws-s3-v3 . I have not had any luck and keep getting an error:
S3Exception in WrappedHttpHandler.php line 152:
Error executing "PutObject" on "https://s3.Oregon.amazonaws.com/s3.meeu.com/users/Joshedijjdied/"; AWS HTTP error: cURL error 6: Could not resolve host: s3.Oregon.amazonaws.com (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Level 23
Looks like you have the wrong entry for your region. You are trying to use Oregon? I believe the right address for that one is:
s3-us-west-2.amazonaws.com
You have:
s3.oregon.amazonaws.com
Which does not work.
Please or to participate in this conversation.