We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Developers
13 TopicsSharing folders to users with viewer still permits downloads
I am working on an integration for our business that uses the API to shared a folder's content with an email attached to the order. Previously we used Google Drive to solve this but have experienced some issues and we would like to make Dropbox our new home. At the moment, I am granting the email addressed attached to the order viewer access like so: const url = 'https://api.dropboxapi.com/2/sharing/add_folder_member'; const payload = { members: [ { access_level: "viewer", member: { ".tag": "email", email: "email@addr.ess" } }, ], quiet: true, shared_folder_id: "<folder_id>" }; Essentially it does grant the user viewer access however they still have the option to download the folders content. Is there a way that we can restrict this? Essentially we are trying to prevent file sharing of our businesses documents.How to determine admin user to be used in select_admin for team folders?
I am using below api to get the list of all users. How to determine the admin from these users I need to use his/her id for select_admin: in subsequent calls for listing team folders const url = 'https://api.dropboxapi.com/2/team/members/list_v2'; const headers = { Authorization: `Bearer ${accessToken}`, 'Content-Type': 'application/json', };Embedder and tags
I have a HTML page that offers a textbox in which the viewer can write certain keywords. After clicking ENTER, the images are loaded in iframes according to the keywords. My problem is: how do I write this is JS so that it can be integrated on a Dropbox Embedder app? Also, I did not find a way to know if I should tag all images in Dropbox or modify their metadata in advance? I expect that all images with same keyword are shown in page, inside their respective iframes.Solved973Views0likes9CommentsListing team folders and content
I need a critical help with question below. i am developing a backup and restore solution which backups data from dropbox and store in s3 bucket. I am using typescript lambda to achieve the same Now I have been so far successful listing the users in a dropbiox business account and listing their files and folders successfully Some snippets of code related to it are List users:https://api.dropboxapi.com/2/team/members/list_v2 Fetch team_member_id for these users Create dropbox client using const dbx: any = new Dropbox({ accessToken: access_token, fetch: fetch, selectUser: team_member_id }); Recursively call below to get all files and folders for that particular team member. Please note the access token is obtained using oauth flow using admin account if (cursor === "") { result = await retry(() => dbx.filesListFolder({ path: "", recursive: true })); } else { result = await retry(() => dbx.filesListFolderContinue({ cursor })); } Now I need to list all the team folders and its content too along with user specific content For it I tried Getting list of team folders using : const teamFolderUrl = 'https://api.dropboxapi.com/2/team/team_folder/list'; Get the team_folder_id Create dropbox client using const dbx: any = new Dropbox({ accessToken: access_token, fetch: fetch, }); Recursively call below to get all files and folders for that particular team member. Please note the access token is obtained using oauth flow using admin account if (cursor === "") { result = await retry(() => dbx.filesListFolder({ path: "/team_folder", recursive: true })); } else { result = await retry(() => dbx.filesListFolderContinue({ cursor })); } but I am getting error error: `Error in call to API function "files/list_folder": This API function operates on a single Dropbox account, but the OAuth 2 access token you provided is for an entire Dropbox Business team. Since your API app key has team member file access permissions, you can operate on a team member's Dropbox by providing the "Dropbox-API-Select-User" HTTP header or "select_user" URL parameter to specify the exact user <https://www.dropbox.com/developers/documentation/http/teams>.` require your help in detailed understanding of the issue882Views0likes10CommentsHow to configure the domain to the chooser's frame-ancestor
Hi~I used the chooser's iframe embedding (as shown in the code). However, it's not displaying correctly due to frame-ancestor restrictions. How can I add my domain to frame-ancestor? Is this in the app's setting page? It doesn't seem to work. Thanks in advance~ const comp = new Dropbox.Chooser({ appKey: "", onSuccess: () => { }, onCancel: () => { }, linkType: "preview", }) Dropbox.mount(comp, document.getElementById("container"));374Views0likes2Commentserror 400 when trying to Get Embedded Sign URL
Hi I'm trying toEmbedded the Dropbox sign api into my react project. im using javascript i want the user to sign in with their account and see their documents that need to be signed. when they click in a document it sends them to a page where the documents should be embedded i have the documents id and with that i can get the signature id, now when i try to make this api call it gives me an error "error_msg": "Signature request is not authorized for embedded signing.", i tried using the playground and still get the same result , any help is appreciated async function fetchEmbeddedSignUrl(signatureId) { console.log(signatureId) const response = await fetch(`https://api.hellosign.com/v3/embedded/sign_url/${signatureId}`, { method: 'GET', headers: { 'Authorization': `Basic ${btoa(API_KEY + ':')}`, 'Content-Type': 'application/json' } }); const data = await response.json(); console.log(data) return data.embedded.sign_url; }1.7KViews0likes6CommentsDropbox Rendering Specific Pages of PDF in HTML
I am trying to display a specific PDF page on my webpage. When I set src to (below), it displays the whole pdf. src="https://www.dropbox.com/example.pdf?raw=1 When I add #page=3 (example below), it still display the whole pdf. src="https://www.dropbox.com/example.pdf?raw=1#page=3 Is it possible to navigate/display a specific page of the PDF using Dropbox?Solved3.3KViews0likes5CommentsDeveloper console app
Hi Team, We are trying to provide dropbox support into our existing application which uses file-stack for uploading files. We followed this tutorialand created an APP from the developer console. Currently our app (dropbox developer console) indicates it is in development mode and supports maximum of 500 users although it freezes once it reaches a count of 50 as per documentation. From the same documentationhttps://www.dropbox.com/developers/reference/developer-guidewe also got to know that we need to proceed with "Apply for production" CTA in order to take our app to the production where any number of users can be connected to the app. We just wanted to understand if we want to "apply for production" where n number of users can connect to app, Are there any charges involved in this ? Awaiting your response Regards, Rohit Raut8.7KViews0likes1CommentHow to upload file via Curl with Binary object input?
Hello, good evening for all. I would like to know, how I can to upload file using a Curl request, or PHP Curl request, with the upload file request. But instead I use the parameter o filepath, I use the binary object inside body request, for example, some 010101101011010101010 binary code inside request instead of "/folder/filename.extension" . Because I am building a system client-server that a user can upload a file, sending by Post request to server, and the server must to take this file via $_ENV[] and insert it into a request to upload to Dropbox. And doesnt a way to server save temporary file inside your filesystem because the your provider is ephemeral, and so, because it i have to insert the file binary data inside request. I will be grateful.5.2KViews0likes4Comments