Bolt\Filesystem\UploadContainer::moveUploadedFile PHP Method

moveUploadedFile() public method

public moveUploadedFile ( $localFile, $destination )
    public function moveUploadedFile($localFile, $destination)
    {
        $this->filesystem->putStream($destination, fopen($localFile, 'r+'));
        return true;
    }

Usage Example

Beispiel #1
0
 public function testMoveUploadedFile()
 {
     $this->container->moveUploadedFile(__FILE__, 'destination');
 }