put() public method

Stores a file in the database
public put ( string $filename, array $extra = [], array $options = [] ) : mixed
$filename string The name of the file
$extra array Other metadata to add to the file saved
$options array An array of options for the insert operations executed against the chunks and files collections.
return mixed Returns the _id of the saved object
Exemplo n.º 1
0
 /**
  * put.
  */
 public function put($filename, array $extra = array())
 {
     $this->time->start();
     $return = parent::put($filename, $extra);
     $time = $this->time->stop();
     $this->log(array('type' => 'put', 'filename' => $filename, 'extra' => $extra, 'time' => $time));
 }