Comments
-
I guess the API related question I was is if I need to use any special encoding with that file data read from the API to prevent corruption regardless of how I choose to stream or use it.
-
It is working now and am able to view the contents on my dropbox viewer. However, when I tried doing it without any encoding yesterday, I also had corruption. What could increase the risk of file corruption when uploading with the api?
-
$dropbox_url_upload = "https://content.dropboxapi.com/2/files/upload"; $opendoc = fopen($filename, 'rb'); $docsize = $doc['size']; $d1curl = curl_init(); curl_setopt($d1curl, CURLOPT_URL, $dropbox_url_upload); curl_setopt($d1curl, CURLOPT_TIMEOUT, $timeout); curl_setopt($d1curl, CURLOPT_HTTPHEADER, […
-
So as a general rule of thumb if I am not dealing with a Dropbox-API-Arg or similiar http header requirement the json encoded array or whatever data I would be providing should go to the post fields. I feel that's what you explained above but want to confirm it.
-
So Simply Take the redirect uri I used when I sent the user to the oauth path earlier and refactor my php page to use that page again? Will I be able to supply a parameter of some kind so that I can reuse that redirect uri without repeating the previous step in my auth process again?
-
Do the other parameters need to be in a assosiative array appended to the Content Type element like I would do with the API Args, or do I need to post those parameters like this: "code: " . $code, ... ?
-
So, I would have a element in my httpheader array that looks like "Authorization: " . $appkey . ":" . $appsecret where the appkey colon appsecret are base 64 encoded? The element I have now is a utf8 encoded $appkey . ":" . $appsecret without "Authorization:" to the left of the string.
-
I use php with an apache and mysql server. I don't have any framework like laravel that I use.
-
header("Location: https://www.dropbox.com/2/oauth2/authorize?client_id=4s9vxyownku3sp2&response_type=token&redirect_uri=localhost:8080/FSUInnovation/InternInsert.php"); This is the header I used to load onto the 0auth page.
-
I use the header in my php page to load to dropbox 0auth. I was able to see the app, log in, and enable the app to the given account. However, instead of bringing me to the localhost8080 uri I specified in the 0auth api url, I was stopped on the way to the dropbox link I showed above. Thus, my account registration process…