我有一个网站表单,用户可以通过简单的发布方法表单上传文件。 如何组织将上传的文件从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."\".");
}