public function send_file($file) {
        $this->googleoauth->setHeader("Content-Length: ". $file->get_filesize());
        $this->googleoauth->setHeader("Content-Type: ". $file->get_mimetype());
        $this->googleoauth->setHeader("Slug: ". $file->get_filename());

        $this->googleoauth->post(self::UPLOAD_LOCATION, $file->get_content());

        if ($this->googleoauth->info['http_code'] === 201) {
            return true;
        } else {
            return false;
        }
    }
public function send_file($file) {
        $this->googleoauth->setHeader("Content-Length: ". $file->get_filesize());
        $this->googleoauth->setHeader("Content-Type: ". $file->get_mimetype());
        $this->googleoauth->setHeader("Slug: ". $file->get_filename());

        $this->googleoauth->post(self::UPLOAD_LOCATION, $file->get_content());

        if ($this->googleoauth->info['http_code'] === 201) {
            return true;
        } else {
            return false;
        }
    }
public function send_file ( $ file ) { $ this -> googleoauth -> setHeader ( "Content-Length: " . $ file -> get_filesize ( ) ) ; $ this -> googleoauth -> setHeader ( "Content-Type: " . $ file -> get_mimetype ( ) ) ; $ this -> googleoauth -> setHeader ( "Slug: " . $ file -> get_filename ( ) ) ; $ this -> googleoauth -> post ( self :: UPLOAD_LOCATION , $ file -> get_content ( ) ) ; if ( $ this -> googleoauth -> info [ 'http_code' ] === 201 ) { return true ; } else { return false ; } }
Sends a file object to picasaweb

@param object $file File object
@return boolean True on success
Sends a file object to picasaweb