php - Use of undefined constant CURLOPT_PROTOCOLS error when using Laravel and S3 -


i'm having snag storage facade in laravel 5.1 when using s3.

i have following code in controller:

    $file = $request->file('file');      $extension = $file->getclientoriginalextension();      $filename = date('d-m-y').'_'.$request->get('author').'.'.$extension;     storage::put($filename, $file); 

however following error:

s3exception in wrappedhttphandler.php line 162: error executing "headobject" on "https://s3-eu-west-1.amazonaws.com/[redacted]/10-06-2015_my%20file.jpg"; aws http error: use of undefined constant curlopt_protocols - assumed 'curlopt_protocols' 

i have curl installed along php5-curl on ubuntu 14.04. i'm using hhvm 3.7.

didn't notice using hhvm. it's not supported.

see


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -