filestack/Filelink.php
public function overwrite($filepath)
    {
        $result = $this->sendOverwrite($filepath,
            $this->handle, $this->api_key, $this->security);

        // update metadata
        $this->metadata['filename'] = $result->metadata['filename'];
        $this->metadata['mimetype'] = $result->metadata['mimetype'];
        $this->metadata['size'] = $result->metadata['size'];

        return true;
    }
public function overwrite($filepath)
    {
        $result = $this->sendOverwrite($filepath,
            $this->handle, $this->api_key, $this->security);

        // update metadata
        $this->metadata['filename'] = $result->metadata['filename'];
        $this->metadata['mimetype'] = $result->metadata['mimetype'];
        $this->metadata['size'] = $result->metadata['size'];

        return true;
    }
public function overwrite ( $ filepath ) { $ result = $ this -> sendOverwrite ( $ filepath , $ this -> handle , $ this -> api_key , $ this -> security ) ; // update metadata $ this -> metadata [ 'filename' ] = $ result -> metadata [ 'filename' ] ; $ this -> metadata [ 'mimetype' ] = $ result -> metadata [ 'mimetype' ] ; $ this -> metadata [ 'size' ] = $ result -> metadata [ 'size' ] ; return true ; }
Overwrite this filelink in cloud storage

@param string            $filepath   real path to file

@throws FilestackException   if API call fails, e.g 404 file not found

@return boolean
Overwrite this filelink in cloud storage