original_string: 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;
          }
      }
code: 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;
          }
      }
code_tokens: 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 ; } }
docstring: Sends a file object to picasaweb
  
  @param object $file File object
  @return boolean True on success
docstring_tokens: Sends a file object to picasaweb