如何通过php网站将文件上传到Dropbox

问题描述 投票:1回答:0

我有一个网站表单,用户可以通过简单的发布方法表单上传文件。 如何组织将上传的文件从Web服务器移动到我的保管箱帐户? 我尝试使用dorpbox.com中列出的PHP SDK,但是该库无法用作Web应用程序。

if (PHP_SAPI !== "cli") {
    throw new \Exception("This program was meant to be run from the command-line and not as a web app.  Bad value for PHP_SAPI.  Expected \"cli\", given \"".PHP_SAPI."\".");
}
php cloud dropbox
© www.soinside.com 2019 - 2024. All rights reserved.