doudu8291 2012-05-28 19:20
浏览 22

Zend GData将文件上传到特定文件夹

I am trying to upload a file into a specific folder. I have the folder URI so I pass that as the URI in uploadFile function in Zend API.

However, I end up getting a 401 error.

This code works and uploads the file to the base of Google docs:

$newDocumentEntry = $docs->uploadFile($filePath, $documentTitle, null, Zend_Gdata_Docs::DOCUMENTS_LIST_FEED_URI);

how do I create a URI that uploads it to a specific folder?


I am really strugling with this issue. I have tried everything I can think of to create a valid URI for specific folder but I always get the following error msg:

Expected response code 200, got 400
Invalid request URI 

does anyone have any suggestions?

  • 写回答

1条回答 默认 最新

  • doushengyou2617 2012-05-28 20:10
    关注

    php zend gdata put a document/file into a category/folder Google Docs

    Is this what you are looking for?

    If the error is 401, check if the authenticated google user really have permission to the folder for writing.

    评论

报告相同问题?

悬赏问题

  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源