Comments
-
Hi, Thank you for your reply. I am able to speed up the process by taking 4MB chunksize. Thank you for your support.
-
Hi, I am able to do everything now. Upload the file in sessions. I have another problem now. That it is taking too much time. Uploading data in chunks, we require to make curl call in every chunk and our file sizes can be in GBs. Therefore, its taking toooo much of time. Is there some solution to this?
-
Thanks for your response. I will do the PHP part myself. I got confused by your incorrect reply previously and started searching more in that direction. Thanks again for your help.
-
Hi, I didn't understand how the file data is returned as a stream. As far as I can see, it returns a normal read data. Can you please elaborate on this with an example?
-
Hi, Thank you for your reply. We do not want to save in local file. Also, reading in memory may cause memory exhausted issue with large files. Same is the issue with saving the read data in a variable when the file is large enough. Instead, we want to read the file in parts instead of reading the entire file at once. Is…
-
Hi, Thank you for your reply. I was able to do that. Removing CURLOPT_PUT resolved the issue. I have now issues with reading the files uploaded on dropbox. I can see that the endpoint for this purpose is : https://www.dropbox.com/developers/documentation/http/documentation#files-download I'm not able to understand how to…
-
Hi, And sometimes it return this: Failed sending data to the peer
-
Hi, Thank you for your response. I was able to find the reason for the behavior I had been thinking as unexpected. But while debugging I'm facing issue with curl call. Many timess the curl call fails with the error "Curl Error Start: Empty reply from server (Server returned nothing no headers no data)". Sometimes upload…
-
Hi, Also I'm trying to upload a .tar.gz file but the file is uploaded incompletely and corrupted using upload session functionality. Can you tell me the reason?
-
Hi, I have been trying the same thing but while upload_finish, I was getting the following error: {"error_summary": "lookup_failed/not_found/..", "error": {".tag": "lookup_failed", "lookup_failed": {".tag": "not_found"}}} On further research I found out that the error occur due to incorrect session id. I corrected the same…
-
Hi, Can I get a faster response on this?
-
Hi, While using 'appen_v2' API, there is a parameter 'offset' which is the amount of data that has been uploaded so far. From where do we get the amount of data uploaded so far? Do we have to calculate on our own? As I can't see any amount of data uploaded returned by the 'file_upload_session_start' parameter.
-
Hi, I have some doubt about 'files_upload_session_start' API. Do I require to first call the 'upload' API and then start the 'upload_session_start' API as I can't see where to mention the dropbox path where I want to upload the file to in 'upload_session_start' API. Can you please tell me how to implement this? Also if I…
-
Hi, Thank you for your response. I'll implement these and get back to you if I face any issues.
-
Hi, Thank you for your reply. >>One thing you may be able to do instead is to use one static redirect URI but encode the necessary information in the 'state' parameter, and decode it as necessary after the redirect back to your app We cannot have one static URI as it varies panel to panel. On cPanel it is different, on DA…
-
Hi, Thank you for your response. But this would require uploading the file in one go whereas I want to upload a file in chunks, say, the file size is 500 MB but I want to upload it 100 MB at a time and next continue writing the next 100 MB from the place it left and so on. At the end we want to close the file
-
Hi, I'm able to resolve the previous error. I have a doubt though. While implementing Dropbox, our user can make auth & token generation calls from various pages. Sometimes those pages may have and sometimes may not have the parameters. We cannot fix them. But according to this v2 of Dropbox APIs, the redirect URL has to…
-
Hi, Is it possible to get a faster response please?
-
Hi, Ahh that was a silly mistake I made. I corrected it and now getting this: {"error_description": "redirect_uri mismatch", "error": "invalid_grant"} Can you tell me why? Also regarding SSL/TLS, we'll have users having or not having SSL/TLS verification on their servers. We would require the support for all kind of…
-
Hi, Now while obtaining an access token, I'm making the curl call to the token endpoint. I cannot make use of the CLI curl command as stated in the example here: https://blogs.dropbox.com/developers/2013/07/using-oauth-2-0-with-the-core-api/ So I'm making a curl call as: $auth_code = $_GET['code']; $acc_url =…
-
Hi, Thank you for your response. I got it now. Should I encode only the redirect URI ('https://www.dropbox.com/1/oauth2/authorize?client_id=6i45k3fi9a1i9an&response_type=code&state=abcdefghijklmnopqrstuvwxyz&redirect_uri='.rawurlencode(get_current_url())) or the complete URI? When I'm encoding the complete URI, I'm getting…
-
Hi, Thank you for your response. >>That does have a 'code' URL parameter, but it looks like it's supposed to be part of the redirect URI. It's not encoded though, so it gets sent as a parameter to the Dropbox page. Instead, you would need to encode the entire redirect URI value. Can you please provide me with an example?…
-
Hi, I'm also trying to generate the oauth2 access token using the oauth1 token and token secret in the following way: function converttov2($access_token){ $cheaders = array('Authorization: Bearer <ACCESS_TOKEN>', 'Content-Type: application/json', 'Dropbox-API-Arg: {"oauth1_token":"'.$access_token['t'].'",…
-
Hi, How can I get a faster support? I really need to speed up things here.. Is it possible to contact you on skype or something?
-
Hi, >>Regarding the actual error you're getting, it looks like you're supplying a 'code' URL parameter, but that's not expected. As seen in the code you supplied, there is a 'response_type' parameter for which the value should be 'code'. I didn't exactly understand you here. Don't we have to provide the 'code' parameter in…
-
Hi, Thank you for your response. In the documentation here: http://dropbox.github.io/dropbox-sdk-php/api-docs/v1.1.x/class-Dropbox.WebAuth.html in the code here: $appInfo = dbx\AppInfo::loadFromJsonFile(...); what should be mentioned as parameters in loadFromJsonFile(...)? Also, I'm using the following code to fetch the…
-
Hi, Can you please tell me some examples of usage of this API? How will I fetch the access token when the authorization is successfull and the user is redirected back to the uri as specified in tge redirect uri? Also, when I'm using this API, I'm getting the error of 'invalid response type code'.
-
Hi, >>The redirect_uri value should be the URL of the page where you want the user sent back to after they authorize your app. As a security measure, it needs to exactly match a redirect URI registered for your app via your app's page on the App Console. If it doesn't you'll get that error you posted. The Redirect URI in…
-
Hi, I made the following changes: function get_current_url() { $url = @($_SERVER["HTTPS"] != 'on') ? 'http://'.$_SERVER["SERVER_NAME"] : 'https://'.$_SERVER["SERVER_NAME"]; $url .= ($_SERVER["SERVER_PORT"] != 80) ? ":".$_SERVER["SERVER_PORT"] : ""; $url .= $_SERVER["REQUEST_URI"]; return $url; } $url =…
-
Hi, Thank you for your reply. I'm not able to understand how to make the PHP curl call, what all curl parameters are to be set, etc. I'm not able to understand how to fetch the user auth token using the authorization API: https://www.dropbox.com/developers/documentation/http/documentation#authorization I'm using it like…