Здравко Legendary | Level 20

Comments

  • @"1575475" wrote:... The endpoint /2/sharing/get_folder_metadata needs an ID but we've only the path at this time. ... Hi @"1575475", In such a case calling /2/files/get_metadata will let you know you shared folder ID (sharing_info.shared_folder_id) and... you can continue from now on, I believe. 😉 Good luck.
  • Hi @"eminem18753", Your results show that the account in use is team account that doesn't has independent root and member home and account root is the same thing (in such a case 'get_current_account' returns 'user'). If there is independent root namespace the same result will be 'team'. 😉 Take in mind that this label…
  • That what I said is you can't append to a file, nothing more. You can have whatever you want wherever you want. Just every next version should be uploaded anew.
  • @"DeeG2009" wrote:..., ive been messing with this for almost a week now, and thats all it was. "/CPGC/Akron/" is working just fine to the existing folder. ... As Greg correctly supposed and you skipped to say, you are running team account, not personal. Your initial path is correct and would work for personal account. By…
  • @"DeeG2009" wrote:... This is the output from upload to dropbox. @"DeeG2009", Greg asked you for dump of the result from 'dbx.files_upload'. Post it. @"DeeG2009" wrote:/JD%20Byrd/CPGC/Akron/ - this is where i am sending the images. ... Are you sure? 🤔 How you got to it? Did you check/dump it?
  • Hi @"Mark E.29", LAN Sync is no more supported on Mac (scroll down to "LAN Sync is currently not supported on Dropbox for macOS." line in the table) once Dropbox started using Mac specific (and provided by Apple) sync engine and left their own. 🤷 That's it. Hope this clarifies matter.
  • Hi @"shinestar9101987", You need refresh token for long term access since long lived access token was dropped. Currently all new access token are short lived. Here you can see an example how refresh token bahaves. Once you get to a refresh token, you can use it to initialize SDK client object. Take a look on the…
  • @"DeeG2009" wrote: ... # Upload the image to Dropbox try: with open(os.path.join(windows_server_folder, name), "rb") as f: dbx.files_upload(f.read(), os.path.join(destination_folder, name)) except Exception as e: print(f"Error uploading {name} to Dropbox: {e}") continue ... maybe i am not getting the path to the folder in…
  • Hi @"DeeG2009", There is a similar question here. You can take some idea out from there. 😉 @"DeeG2009" wrote:... For the life of me i cannot get it to stop creating new folders. . ... If the folder you are going to upload to is there, no other will be created. If such a folder is missing, it's gonna created automatic. Hope…
  • @"sr_c" wrote: ..."Error in call to API function "files/save_url": request body: could not decode input as JSON"main part of the script attached below--------------------------------------------------------... let postOptions = { method: "POST", headers: { "Authorization" : "Bearer " + appToken, "Content-Type" :…
  • @"FrustratedUser3", When you use redirect URI to receive a code, you have to use the same URI as a parameter in the call to /oauth2/token (the 'redirect_uri' parameter). 🙂 In spite this parameter is optional in general, it becomes mandatory with code received through redirect URI and the value should match this URI. As can…
  • Hi @"FrustratedUser3", If you mean callback query (redirect URI), after confirmation by user, ( it's NOT a call!!! ) GET method is in use. For code flow, there is mandatory 'code' parameter and optional 'state' parameter (appears when/if set in auth URL). Further you need to finish the flow with call to /oauth2/token where…
  • @"pkd" wrote:Thank you but this is not what I asked for. I thought that there exists simple script that lets you ulpoad files to Dropbox. ... 🤔Did you test the above script? It can perform upload of one or more files in pointed Dropbox place/folder! The simplest upload command would be: dropbox_file upload <your local…
  • @"subyankee" wrote:... Does everyone have a namespace? Or does it only apply to subfolders? Or is it just the top-level folders? ... Hi @"subyankee", None of the above. Let's see a simple example - personal account where you are working alone (without any shared folder, edit links, file requests, third party apps with…
  • Hi @"pkd", I have no idea what you mean "simple Python script", but here is one that handle needed credentials receiving and do some work: #!/bin/python3################################################################################ Script uploading files to Dropbox and receiving Dropbox links#…
  • @"spmish" wrote:... (org.gnome.Nautilus:8764): GLib-GObject-WARNING **: 09:23:56.100: Two different plugins tried to register 'TerminalNautilus'. ... Hi @"spmish", Seems like you have issue with nautilus-extension-gnome-terminal plugin, not Dropbox' plugin. Have you installed something by hands (without using Ubuntu…
  • @"sffatcat" wrote:is it possible to generate a access token for a Team folder? ... Hi @"sffatcat", Take in mind that tokens are associated to corresponding accounts, not to specific folders (including team folders). Once you have OAuth flow done, you can use resulted token to access all folders accessible for particular…
  • Hm..🤔 Seems, I was not clear enough. I will try make it clearer. @"new_to_dreamland" wrote:... If I understand you correctly, if we are able to make an application that have proper control carefully, end users can access our Dropbox account embedded in the application where they can upload/edit/delete files of what they…
  • @"new_to_dreamland" wrote:... I was thinking all of end users who are going to use our app will not need a dropbox account, and they can upload files via dropbox connecting to our dropbox account through the app. In such case, as you mentioned, it is technically possible but not officailly supported? Am I correct? ... Hi…
  • @"Tomtit", Would be much easier if you start with some simple test code (something like shown here). 🙂 Once you got it running, you can play with different code modifications there. It's more automated when redirect URI points to local address rather external one for standalone local application. In referred example such…
  • @"env", As noted in the error message, you got, you need to specify which team member should be impersonated. While a personal account can represent single user only, team account represents least 3 members/users! That's why for team account you need to specify concrete member. During OAuth2 flow you get such ID. Keep that…
  • Hmm...🤔 @"Walter", Where in the page, your link points to, can be seen DEB package dedicated for Gtk4 based Nautilus? As far as I can see, the plugin in the DEB package there supports only Gtk2 or Gtk3 based Nautilus. Am I wrong? 🧐
  • It depends where are you using javascript. If you use browser session, better rely on Dropbox user session. In such a way you don't need any code or refresh token management. If you use javascript for standalone client side application or server application (node for instance), use something like my previous example. Both…
  • @"env" wrote:... can you please provide an example how to do that? there is an API call of dropbpx-sdk for that? ... Hi @"env", You didn't mention what SDK you are using. If you use Python, then an example can be seen here. If you use some other SDK you can adapt the same idea. 😉 Good luck.
  • Hi @"Asharaf", To create shared link(s) to either file(s) or folder(s) you can use corresponding methods. For an idea in Python, you can take a look here. Every received link, in such a way, points to preview page (not the actual file or folder)! To download pointed content, you need to 'transform' preview link to download…
  • @"deckard" wrote:... How do I make the default action for Copy Link be View instead of Edit (like it was up until a couple weeks ago)? Yes, stupid move is the changing default settings of any kind (I fully agree). Of course, the available new option can and should be possible to be set as default (without automatic…
  • @"See Saw IT Support" wrote:... I'm trying to create a Python script using the API to pull a list of all shared folders ... Hi @"See Saw IT Support", What would you say for method team_namespaces_list/continue? 🧐 Once you have all namespaces and their type you can get the metadata for everything of interest for you. 😉 Take…
  • @"lucaferretti" wrote:... After 4 hours can I generate a new one (through api) ... Hi @"lucaferretti", Yes, that's the idea. You can do it even before that 4 hours period. 😉 @"lucaferretti" wrote:... Isn't there a way to get a "permanent" link? ... Yes, there is. Take a look here. Hope this helps.
  • For Windows you can start here: https://learn.microsoft.com/en-us/mem/configmgr/core/plan-design/security/enable-tls-1-2 Take in mind that your build environment may need additional "tuning"; read the related documentation. Good luck.
  • @"admsho" wrote:... (* will localhost will be used at the final stage when it is ready for publishing or will I need to change it? ... Whatever is the public domain name of particular machine (if any), localhost domain (and the corresponding IP) is always available and the same. That's why it's convenient is such cases and…