0
我想上傳一個簡單的CSV文件到谷歌文檔使用zend gdata庫,但不知何故卡住了。使用Zend上傳文件gdata
我看了用於上傳的所有文件,並找到一處被卡住:
在線:Zend公司/ GDATA/Docs.php 229後:$ FS = $這個 - > newMediaFileSource($ fileLocation) ;
即使我查看了每一個文件,我仍找不到那個newMediaFileSource()函數。任何人都有一個想法,我該如何解決這個問題?
public function uploadFile($fileLocation, $title=NULL, $mimeType=NULL, $uri=NULL)
{
// Set the URI to which the file will be uploaded.
if ($uri === NULL) {
$uri = $this->_defaultPostUri;
}
// Right after this line it stops executing:
$fs = $this->newMediaFileSource($fileLocation);
if ($title !== NULL) {
$slugHeader = $title;
} else {
$slugHeader = $fileLocation;
}