views:

139

answers:

0

Hi guys I'm building a form that uploads documents to my google docs account however its not working I keep getting an error - the following is my code;

$service = Zend_Gdata_Docs::AUTH_SERVICE_NAME;
$client = Zend_Gdata_ClientLogin::getHttpClient($username, $pww, $service);
$docs = new Zend_Gdata_Docs($client);

$newDocumentEntry = $docs->uploadFile($_FILES['file']['tmp_name'], $_FILES['file']['name'], null, Zend_Gdata_Docs::DOCUMENTS_LIST_FEED_URI);

I get the following error:

PHP Fatal error:  Uncaught exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 400
Inconsistent repeating query parameter ' in C:\...\Zend\Gdata\App.php:700

I'm using php and the Zend gdata code.