예제 #1
0
파일: S3.php 프로젝트: expstudio/laraclip
 /**
  * Move an uploaded file to it's intended destination.
  * The file can be an actual uploaded file object or the path to
  * a resized image file on disk.
  *
  * @param  UploadedFile $file 
  * @param  string $filePath
  * @return void 
  */
 public function move($file, $filePath)
 {
     $this->getS3Client()->putObject(['Bucket' => $this->getBucket(), 'Key' => $filePath, 'SourceFile' => $file, 'ContentType' => $this->attachedFile->contentType(), 'ACL' => $this->attachedFile->ACL]);
 }