Want to know more about Dash? Check out how Amy uses Dropbox and Dash to make her day easier here!
File access
7 TopicsSlow response using Dropbox for Python
Hello, My python code has been working well for months. Within the past 48 hours, the files_download command in the snippet below (with tokens obfuscated) has started to take about 45 seconds while previously it was instantaneous. It is the last line that is the culprit. import dropbox DROPBOX_APP_KEY = "?????" DROPBOX_APP_SECRET = "?????" DROPBOX_REFRESH_TOKEN = "????" dbx = dropbox.Dropbox(app_key=DROPBOX_APP_KEY, app_secret=DROPBOX_APP_SECRET, oauth2_refresh_token=DROPBOX_REFRESH_TOKEN) metadata, f = dbx.files_download('/alerts.csv') Any suggestions? With thanks, David164Views0likes6CommentsFile ID is not unique
I have several instances, where File ID is not unique in my Dropbox account. Below is two sets of metadata including “id”, “name”, “path_display”, “size”, “rev”, “content_hash”, “server_modified” from two different files. Filenames, paths and file sizes are different, but the first field with file id is the same. The metadata is extracted with a python script. I can send the script if needed. How can different files have identical file Ids in same account? It makes file movements and downloads based on file ID a risky action. id:hHMoQrtHqVAAAAAAAAB3ig Credenza assembly R2.stp /FORM 3D Archive/frattini/in progress/cb2, frattini, fall 2022/Office/Credenza/Drawings/Credenza assembly R2.stp 975538 015eca3c02fec960000000280bb3010 63e26b666254d76318fb0328b5999d992017c65fc2a0696b0cbf4e38d0daf832 04/11/2022 11.55.31 id:hHMoQrtHqVAAAAAAAAB3Ig Room Divider Assembly R1.stp /FORM 3D Archive/frattini/in progress/cb2, frattini, spring 2023/grid construction room divider/Drawings/Room Divider Assembly R1.stp 893028 5d6e306a534f872420641 1d9d0ed10006c9d47e259bed31d6968ce0c3f2e0ad1a6c52dc9401e94ee4c367 31/01/2022 16.10.40Solved93Views0likes3CommentsGetting a list of files using HTTP API in shell with Curl
I run this and get empty response, despite having created a /Homework/math curl -X POST https://api.dropboxapi.com/2/files/list_folder \ --header "Authorization: Basic <token>" \ --header "Content-Type: application/json" \ --data "{\"include_deleted\":false,\"include_has_explicit_shared_members\":false,\"include_media_info\":false,\"include_mounted_folders\":true,\"include_non_downloadable_files\":true,\"path\":\"/Homework/math\",\"recursive\":false}" And I get the response {"error_summary": "path/unsupported_content_type/.", "error": {".tag": "path", "path": {".tag": "unsupported_content_type"}}}% All I am trying to do is get a list of files? I don't want to preview it, just a list?? Under /Homework/math under this application called "ArduinoCloud" I stored two images and a text file, nothing more.Solved531Views0likes3CommentsAccess dropbox file - Authentication failed because the remote party has closed the transport stream
i'm new in this type of access. I wrote this code but i have the error in objet to recover the list of files in dropbox. Dim token As String token = "sl.B6........." Dim _command As String _command = "https://api.dropboxapi.com/2/files/list_folder" Dim Request As HttpWebRequest Request = HttpWebRequest.Create(_command) Request.Method = "GET" Request.KeepAlive = True Request.ContentType = "application/json" Request.UserAgent = "Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36" Request.AllowAutoRedirect = True Request.Headers.Add("Authorization", "Bearer " & token) ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 Dim Response As HttpWebResponse = Request.GetResponse()1.9KViews0likes32Comments