zoho远程api正常形式服务器端代码

时间:2016-02-23 05:54:37

标签: zoho

我正在使用zoho远程api作为普通表单,但每当我尝试保存我的文档时都会收到错误请帮我纠正下面给出的代码 我需要帮助来保存我的文档。每次我保存文档时都会收到错误“无法发布内容”

<form accept-charset="UTF-8" target="_blank" action="https://sheet.zoho.com/remotedoc.im" method="POST">
<input type="hidden" value="http://example.com/demo1/test.csv" name="url">
<input type="hidden" value="**********" name="apikey">
<input type="hidden" value="editor" name="output">
<input type="hidden" value="normaledit" name="mode">
<input type="hidden" value="test.csv" name="filename">
<input type="hidden" value="en" name="lang">
<input type="hidden" value="12345678" name="id">
<input type="hidden" value="csv" name="format">
<input type="hidden" value="save.php" name="saveurl">
<input c type="submit" value="Details" name="submit">
</form>


<?php

$filepath = '/home/spatials/public_html/demo1/'.$_FILES['content']['name'];

$tmp_filename = $_FILES['content']['tmp_name']; 

$upload_status = move_uploaded_file($tmp_filename, $filepath); 

?>

请更正我的代码

1 个答案:

答案 0 :(得分:0)

错误的保存网址:

<input type="hidden" value="php/save.php" name="saveurl" />

更正保存网址:

<input type="hidden" name="saveurl" value="http://example.com/demo1/save.php" /> 

WIKI页面链接供参考:https://apihelp.wiki.zoho.com/Save-Document.html