-
upload image using apiv2 in iOS idk using objective c
How i can upload image usign objective c. I am using APIV2. And i implemted it which display me an error. Test 1 root folder here. I want to image uplaod in this folder NSData *fileData = [@water.jpg dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:NO]; [[[client.filesRoutes uploadData:@/Test1/…
-
Urgent Dropbox API V2 2/files/list_folder/continue
Suddenly I am not getting any changed set details from server. I have uploaded new folders and files in once specific folder but 2/files/list_folder/continue always returning me null entries.
-
Re-authenticate using access token
Hi, i get access token in my app using dropbox api. i want to reauthenticate in the same app on other device using these access token. How i can program it in objective c. Kinldy provide me solutions for this as i need it very badly. Looking for needfull help. regards
-
File upload does not accept diacritic characters
We are using the Dropbox api as part of our app. Now that we are migrating from v1 to v2, we noticed that any files with diacritics(Umlauts, Kanji, etc) do not upload correctly. If I just send the data, the umlauts are removed. Kanji causes a failure to parse the JSON. Looking through some of the other issues like this,…
-
DBRestClient and DBRestClientDelegate replacement in v2 Objective-C SDK
Hi, In v1 API & SDK we used DBClient: loadThumbnail, cancelFileLoad and deletePath and its delegate protocol DBRestClientDelegate what are the v2 counterparts we should use to replace those two? (specially in the context of loading images thumbnails and deleting those files). Thanks.
-
Share a file, then return the URL ONLY
I am using Python to share an image. Then, I want to be able to only print to the console the short url. How do I accomplish this? With this: print(client.share(path)) I get: {'visibility': 'PUBLIC', 'expires': 'Tue, 01 Jan 2030 00:00:00 +0000', 'url': 'https://....'} What I want: https://.... Any help is greatly…
-
If-Modified-Since and Last-Modifed headers
Hi, i need to know if Dropbox supports If-Modified-Since and Last-Modifed http headers. The thing is that i need to know when a file is updated, and i think this fuctionality is not sopported by Dropbox. Can you help me? Maybe i could do it through de API? Thanks in advance.
-
Masking Dropbox URL
We have a Dropbox bussiness account. And we want to move several files from our web site server into dropbox and use dropbox as a storage solution. When a user wants to downoad one of these files we would like to keep the URL pointing to our domain and download the file dirctly from dropbox. Our site is based in ASP.Net (…
-
xcworkspace version control
So I understand that after you install cocoa pods that you access your project through .xcworkspace instead of .xcproject but then I lose the nice version control I had setup. Anybody know how to implement version control when using xcworkspace?
-
DBChooser in Swift3 app - DirectLink = "nil" problem
Hi, I'm using DBChooser framework for pdf preview and download from dropbox and then to upload to another server. I stuck on this part of code. ViewController DBChooser.default().open(for: DBChooserLinkTypeDirect, from: self, completion: { reasults in print(reasults as Any) }) DBChooser is working because dropbox is…
-
Objective C SDK v1 show current version similar to "kDBSDKVersion"
In objective C SDK v1 we can do the following to determine the currently installed version: NSLog(@Current Dropbox SDK Version is: %@", kDBSDKVersion); How can we do this in SDK v2? Thanks
-
Interpreting iOS upload example
New to iOS development (this will become obvious shortly). Trying to follow these instructions for making an upload style API request: let fileData = "testing data example".data(using: String.Encoding.utf8, allowLossyConversion: false)! let request = client.files.upload(path: "/test/path/in/Dropbox/account", input:…
-
Calling DropboxOAuth2Helper.ProcessCodeFlowAsync synchronously
From the OAuth guide: "Note that for certain apps, such as command line and desktop apps, it's not possible for a web browser to redirect back to your app. In these cases, your app does not need to include a redirect_uri parameter. Dropbox will present the user with an authorization code that they will need to copy and…
-
Copy file to local drive
How I can copy a file from user's dropbox account to servre using JS SDK. Previously we were using PHP SDK where user giving permission access app folder to our app. Then app was reading all files from user's dropbox account and copying those to server. We want to achive same using JS SDK. Want copy file from dropbox to…
-
Javascript SDK CLIENT_ID
We have app in which we were using PHP SDK but unfortunately we don't have any updated PHP SDK 2. Now we are trying to replace our code through javascript. We saw javascript use app's CLIENT_ID to genearte authenticate URL. But we are unable to find from where we can get CLIENT_ID for our app. Previously we were using App…
-
API crash no log
I am getting a kind of weird error with my client request, every time the code gets to client.users().getCurrentAccount() it seems to crash with no error reporting, the app just stops. Did I se up somthing wrong? I am using the token generated from my account. Account account1; final String ACCESS_Token = "<redacted>";…
-
Webhooks delay - recommended wait time?
Hi, in reference to this: https://www.dropboxforum.com/t5/API-support/Webhooks-delay/td-p/145062 We're using include_media_info=true, and our strategy is going to be to action each webhook twice - immediately, and after a small number of seconds. My question is what would a recommended number of seconds to wait before…
-
Slow response from /list_folder
When calling /2/files/list_folder, whether its on the root or on an empty folder, the response takes about 7-8 seconds. Requests to other storage providers aren't taking that long, i've done some tests to ensure my network connection is stable. Is 7-8 seconds the expected response time for this api call, regardless of…
-
Distinction between Oauth 2 and PHP Core API (PHP SDK)
Hi, I'm from Softaculous Ltd and we are now starting to integrate with Dropbox for Backups upload and download. I want to know the difference between your PHP Core API or PHP SDK and OAUTH 2. Also, do you have something as FTP stream to upload a tar.gz file in parts?
-
shared_link_already_exists just after list_shared_links returned nothing
I maintain an application which uploads files submitted by users and creates a shared link to them. In most cases it works properly, but today one call to create_shared_link_with_settings returned 409 with the message shared_link_already_exists It happened few hundred miliseconds after I called list_shared_links and…
-
FileUriExposedException
Hi Dropbox crashes. (dump is at the end of this question) I have an app that I had developed for myself. It used to work with Dropbox untill recently. I am storing my myfile.or1 on dropbox and in my app I am using intent-filter to call my app to read it. I am not using dropbox API. I did not move to 24 -…
-
Upload sometimes needs pressing enter to proceed.
My uploading code seems working. But the uploading progress often suspends and it only continues after I press enter. The progress display is like this: Authorizing... Authorize OK! //Sometimes the program suspends here for like 10 minutes. I have to press enter to make it display the following. Start uploading... Uploaded…
-
download timeout error message
I am trying to access slides in a folder, and seeing this error when I downloading them thru SwiftyDropbox API. I want to write code to retry said downloads, but how to capture this verbose description to make sure I am retrying for a code -1001. My errorcode looks like this? ClientError: Optional(Error…
-
no media info for PNG files in v2 API: /list_folder
Hi, I am trying to filter images (PNG files) and videos (.mov files) from the list received in /list_folder response. In API v1 we had the mimeType which was simple and efficient. In v2 API I am trying to use the media_info structure, but unfortunately it is not returned for PNG files. Also, the media_info does not allow…
-
Option to get metadata for root
I have been using API V1 to get metadata for root folder. But I came to know that, this is not available in API V2. This is very essential to my app. Can you suggest any option or alternate?
-
API v2 access token validity and authorization redirect URL response
Is it correctly understood that the token I get from a user after the authorization flow, is valid until the user revokes it? Meaning I can just store it securely in the app and use it each time it's needed? Second question. If I can not close the browser that presented the dropbox authentication dialog (on calling…
-
Dropbox API: No CORS header present
Hi, I am using the dropbox core API v2 with angularJs web client using $resource and Express REST server to access dropbox. After i moved to $resource from my client instead of $http, I am getting the following CORS error when redirecting to dropbox for OAuth2 authentication as mentioned in the Dropbox OAuth2 guide. If i…
-
Sharing folders via API with outside email address
Using the Python SDK. I am creating a shared folder and would like to invite someone to collaborate on the folder and I only have the email address. We are on Dropbox Plus and it is not a team account. Is this possible and if so how would it be done? I tried using the sharing_add_folder_member, but it does not sure…
-
iOS Obj-C Getting result.entires to be UItableview Datasource
Hello, i'm new to v2 and I'm updating an app using objective-c. When I call a listFolder, I get results. [[client.filesRoutes listFolder:searchPath] setResponseBlock:^(DBFILESListFolderResult *result, DBFILESListFolderError *routeError, DBRequestError *error) { if (result) { NSLog(@result.entries %@.",result.entries);…
-
Auth Token Question
Hello, I am using JavaScript API from dropbox. Is there a way to generate a temp token, so it expires after its used once? I find a permanent token is risky, anyone can just upload anything to my account. Thanks!