Beispiel #1
0
 /**
  * Download a file
  *
  * @param instanceof Attw\File\File $file File to upload
  * @param string $directory Directory to upload file
  * @return boolean
  */
 public function upload(FileInterface $file, $directory)
 {
     return move_uploaded_file($file->getTmpName(), $directory . DIRECTORY_SEPARATOR . $file->getName());
 }