問題描述
Dropbox Api putFile php 發送文件失敗 (Dropbox Api putFile php fail send file)
I am trying send a file to Dropbox using http://www.dropbox‑php.com/
Dropbox‑PHP answers: Forbidden. This could mean a bad OAuth request, or a file or folder already existing at the target location.
I have send a request, just for the test, where I try get account info. Success. I get information about my account.
Next I try get metadata about file which I'll send. No such file.
Metadata other files I get.
What is causing the problem?
‑‑‑‑‑
參考解法
方法 1:
It could be the requested path. Try to remove slash '/' from the beginning of path.
方法 2:
It looks like the API you are using is broken.
Here is a simple Dropbox‑PHP example:
https://github.com/hawaiianchimp/Dropbox‑PHP‑API
(by J Sorel、Daniel Stejskal、seantomburke)