zoho remote api 普通表单服务器端代码
zoho remote api normal form server side code
我将 zoho remote api 用于普通格式,但每当我尝试保存我的文档时都会出错 请帮助我更正下面给出的代码
我需要帮助来保存我的文档。每次我保存文档时都会出现错误 "unable post the content"
<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);
?>
请更正我的代码
保存错误URL:
<input type="hidden" value="php/save.php" name="saveurl" />
正确保存URL:
<input type="hidden" name="saveurl" value="http://example.com/demo1/save.php" />
WIKI 页面 link 供参考:https://apihelp.wiki.zoho.com/Save-Document.html
我将 zoho remote api 用于普通格式,但每当我尝试保存我的文档时都会出错 请帮助我更正下面给出的代码 我需要帮助来保存我的文档。每次我保存文档时都会出现错误 "unable post the content"
<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);
?>
请更正我的代码
保存错误URL:
<input type="hidden" value="php/save.php" name="saveurl" />
正确保存URL:
<input type="hidden" name="saveurl" value="http://example.com/demo1/save.php" />
WIKI 页面 link 供参考:https://apihelp.wiki.zoho.com/Save-Document.html