Здравко Legendary | Level 20

Comments

  • @"Jistix" wrote:... When users connect our app to Dropbox via OAuth, the process is successful, but the users are not able to see any of their files or folders within our app. ... Hi @"Jistix", To be able see your users files or folders, you need call to 2/files/list_folder[/continue]. As you can see there (AUTHENTICATION)…
  •  Webhooks OverviewWith webhooks, your web app can be notified when your users' files change, rather than requiring your app to frequently poll Dropbox for changes. Every time a user's files change, the webhook URI you specify will be sent an HTTP request telling it about the changes. ... @"peyo", 🤔 What are your users?…
  • @"peyo", in addition to what Greg said, when you only need to link your own account to the application, generating refresh token will work in the same way as long lived access token did before. Take a look here how you can get to a refresh token. 😉 You don't need to use it, just don't revoke it. Hope this helps.
  • Hi @"makrand kulkarni", 😁 You are in confusion. There is no way to get refresh token based on access token; the sequence is opposite! You have to get a refresh token and after that you SDK will take care for the rest (including access token generation. Take a look here and here for more info. Hope this helps.
  • Hi @"itsisaf", If you have a shared file link, then you don't need any API to get its content. Just get it as you would do for any other link. Only additional thing you can care, if need, let link gets redirect before reaching final stage. In addition usually proper parameter for raw access is needed to be set (if not…
  • Hi @" Jasmine jj", Take care. 🙂 You are asking the Dropbox server for your file requests count, not some files count! 😉 That are different things. There is no direct way; you have to list files in particular folder, if you want. That's it. Hope this helps.
  • Hi @"sanjeev_hansanur1", There are some examples where you can select from to test or get idea. You don't need access token directly since Dropbox Java SDK takes care about it. To create client object you need to create DbxCredential object (for accessToken set some arbitrary string and for expiresAt set zero). Depending…
  • @"Greg-DB" wrote:... In any case, it still sounds like the right solution here is to move the long work out of the callback. Yes, one simple "fix" (might not be the best in all cases) can be replace function declaration like: success: function(files) { to something like: success: async function(files) { And yes, on Firefox…
  • @"Ashrafali", I'm wrong in my previous post. Seems 'success' callback is called asynchronously. That's why it can't stop/delay chooser disappearance. To be honest I can't reproduce your issue. 🤔 Can you share some code sniped representing it?
  • @"Ashrafali" wrote: ..., if the file is too large then the chooser stays open ... Hi @"Ashrafali", Do you perform file operations in chooser's callback or let it return before (or immediately after) start processing? 🧐 Take in mind that chooser will stay blocked as much as you block it's execution within the callback. 😉…
  • Hi @"11robert", There is an "SimpleTest" example showing the .NET SDK usage (including the idea for file upload). Dropbox doesn't provide Visual Basic support, but you can "translate" the idea from example mentioned (it's C#), I believe. 😉 Hope this helps.
  • Hi @"Akansh Gautam", About the error of team folder creation, seems you have forgot select 'team_data.content.write' space. About sharing, it's unsupported for App folder.
  • @"Omri1984" wrote:... and we are not doing refresh token at all , ... Hi @"Omri1984", You are "not doing refresh token at all" - exactly; and that's where you issue is coming from. 🤷 I have no idea why you refuse to understand that. @"Omri1984" wrote:..., all manage automatically ... No, here you are wrong! Version 4.7…
  • @"Omri1984" wrote:we are using dropbox 4.7 .net sdk Version 4.7 does not support refresh tokens! Update it (your application too).
  • @"Omri1984" wrote:... an up until now alll was good suddenlty the automatically refresh token stop working and we are getting this error Dropbox.Api.AuthException: expired_access_token/ ... Are you sure you are using refresh token at all? 🤔 The error states access token issues, not refresh token!
  • Hi @"alexiscastillodj", Instead of suspicious advises from unofficial places you can read the official documentation. 🙂 Isn't it? About teams: Have you identified particular team member before try to make files access using either as_user() or as_admin() methods? 😉 Hope this gives direction.
  • @"TCLTC32" wrote:... Currently I can have only "short lived" token which expired, ... Hi @"TCLTC32", There are no more long lived access tokens (no new at least). Using refresh token you don't need to authorize by hand again and again. Once existing short lived access token expires, it can be automatically "refreshed". If…
  • @"nadeemphpdots" wrote:... Is there any api to get both thumbnail and actual image? No, both - no. You already know how to display your thumbnail. For actual image, you can select using shared link, temporary link, or image data (like the thumbnail). Shared link can be created with…
  • 😁 I'm not sure you understand, but you are trying to put image file binary content as a source URL of an image. I thought my post above was clear, but seems it's not enough. Think of your "$data" as a content of an image read from file available on your server (not as a URL to there). What will be the result? 🧐 🙂 You have…
  • Hi @"nadeemphpdots", Seems you have found out your PHP string error. 🙂.... And... What's wrong here? 🤔 Everything seems normal. Your jpeg, you opened as text, might confuse you. Isn't so? 😉 Hope this helps.
  • @"icossean" wrote:... Only after we clear their API Key/Token from our server and then re-authenticate the client's credentials to apply a new API Key/token, the connection is restored and the upload function works again. ... Hi @"icossean", What actually do you mean here with "API Key/Token"? 🧐 Dropbox uses OAuth2…
  • Hi @"leoheck", Yes, you are as expressive as possible. I can't add too much. Unfortunately I can't disagree. 🤷 Linux is NOT first class citizen here. About 'isSet' method deprecation, it's just one more example. This planed move didn't reflect in the control script, as you mentioned. Fortunately, this method is not dropped…
  • Everything seems normal in your post @"alanpmuscat". You files are in sync, at least. If I have to bet this is some type of escalation of old problem related to tray icon and menu. Nobody from Dropbox development took care! There are bugs in haw Dropbox application "communicates" to the desktop environment. It always has…
  • Hi guys, Nobody have posted the status command result. There could be some additional info or direct guidance (sometimes). Check result coming from following command executed in terminal: dropbox status I believe, you can figure what's going out. If some doubts, post the result. Sometimes troubles can be seen (and…
  • @"nadeemphpdots", In addition to what Greg said, you can use those calls also with Application Authentication. In other words, you don't need to be logged in since shared resource isn't something private (by assumption). @"Greg-DB", I thought to post the example in App Authentication section, but there is a mistake. Can…
  • Hi @"bozae", Did you specify some type of content or transport ('Content-Type' and/or 'Content-Encoding' headers) on upload time? If you did, Have you checked for their compatibility? @"bozae" wrote:I uploaded a .txt file to an app folder via DropBox API with Python. ... And... no any error as a result!? 🤔 Try upload again…
  • Hi ageing @"sunilgeechoo", I'm not sure what actually you have done, but if you stopped after browser generated code... it's just a code, not refresh token, as you might thought. This code can be used one time for refresh token generation and for nothing else! As seems you haven't done it or trying multiple times (I…
  • Hi @"UserAccount", Are you sure you have tried with real folder id (as received from corresponding API call) and not some malformed path? 🤔
  • No, refresh token doesn't expire itself. It's long lived and can only be revoked by the application or by user on demand.
  • @"Reshma " wrote:How can we see the Template added for user and File Properties added for a file in Dropbox webapplication(UI) ... Hi @"Reshma ", You can't actually. As you can see here: Templates are owned either by a user/app pair or team/app pair. Templates and their associated properties can't be accessed by any app…