错误:Dropbox上传功能

时间:2016-09-08 06:10:21

标签: php codeigniter dropbox dropbox-api dropbox-php

致命错误:在非对象上调用成员函数uploadFile() 使用PHP API将文件上载到dropbox时获取上传文件功能的错误在Live Server上。相同的代码在localhost上正常工作并在codeigniter中执行。代码的开头是**

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<title>Secelt Form</title>
</head>
<body>

<label>Select Form</label>
  <select id="selectForm">
    <option></option>
    <option value="form1">Form 1</option>
    <option value="form2">Form 2</option>
</select>
<hr/>

<form  method="post"  name="firstform" id="form1" action="">

<label>Form 1</label>
<button id="btn1" value="Select All">Select All</button>
<button id="btn3" value="Delete CheckBox">Delete CheckBox</button>  <br><br>
<input type="checkbox" name="chk" value="One" id="ck1">One</input><br>
<input type="checkbox" name="chk" value="Two" id="ck2">Two</input><br>
<input type="checkbox" name="chk" value="Three" id="ck3">Three</input><br>
<input type="checkbox" name="chk" value="Four" id="ck4">Four</input><br>
<input type="checkbox" name="chk" value="Five" id="ck5">Five</input><br>
<button id="btn4" value="Status">Status</button>
</form>

<form name="secondform" id="form2" action="">
<label>Form 2</label>
Name : <input type="text" name="name" placeholder="Enter Your Name"><br><br>
Email : <input type="text" name="email" placeholder="Enter Email id"><br><br>
<button id="btn5" name="chk" >Submit</button>
</form>
</body>
</html>

0 个答案:

没有答案