Hi I'm having a problem with uploading a file to amazon s3, I think it's a certificate problem, I'm using wamp and have set my curl.cainfo = "C:\wamp\bin\php\php5.5.12\extras\ssl\cacert.pem" to the correct path but I'm not sure that the rest of my code when saving a file is right either, below is the error I'm getting in my webpage
Error Message:
Error executing "ListObjects" on
"http://ift.tt/2jSwwCl"; AWS HTTP error: cURL error 6: Could not resolve host: s3.oregon.amazonaws.com (see http://ift.tt/1mgwZgQ)
problem:
CURLE_COULDNT_RESOLVE_HOST (6)
Couldn't resolve host. The given remote host was not resolved.
public function save($storage = false) {
$this->filename = $this->filename . '.' . $this->ext;
$image = Image::make($this->filepath);
$image->save($this->folder . '/' . $this->filename);
if($storage) {
Storage::disk('s3')->put($this->folder . '/' . $this->filename, $image->stream());
if(File::exists($this->folder . '/' . $this->filename)) {
File::delete($this->folder . '/' . $this->filename);
}
}
$image->destroy();
return $this->filename;
}
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2jSe5O2
via IFTTT
Aucun commentaire:
Enregistrer un commentaire