Start 2025 on time and up to date! Seamlessly integrate your calendars into Dropbox with these simple steps! 📆
Developers
117 TopicsEmbedding Replay works fine, BUT....
I'm building a client portal so my clients can manage their videos. I've set up a page to embed a video so they can review it, and the player embeds just fine. However, the video itself is pushed off to the right inside the player, so there's a big blank space to the left, and the right 30% of the video is outside of the player. How do I get it so the video is centered in the player? I've tried using both embed code and iframe, and get the same result no matter which one I try. I did look up the DB Embedder, but it says it doesn't work with audio or video.77Views0likes3CommentsGetting the files (svgs and images) in a public Dropbox folder
I have a public Dropbox folder that would have a bunch of files in it (the user can paste their own public link). In that folder, I want to be able to get all the files that are there; specifically images. I would like to get their names, links, thumbnails etc and then have the user download them. For now, I would just like to see what files are in a folder. Any help on how I can achieve this would be greatly appreciated. I am using the Javascript SDK.Welcome to the Dropbox Developer Community!
Welcome to the Dropbox Developer Community! This is a space where you can get help, provide feedback, brainstorm ideas, make connections, and get inspired. The Dropbox team is here to help with questions, file bugs, and report your feedback. We also encourage all community members to jump in and support each other. Here are just some of the things you can do in the Dropbox Developer Community forum: Get help Ask questions about specific issues or roadblocks Brainstorm how to use the Dropbox API to solve your technical and/or business needs Review tips, examples, and tutorials Help others Share your expertise, experiences, and insights to answer questions from other community members and participate in discussions Share examples, stories, and code samples of the work you have done on the DBX Platform Influence DBX Platform Provide feedback and file feature requests with the Dropbox team Alert us to potential bugs with our endpoints and SDKs Stay in the loop Get the latest announcements and updates from Dropbox Get invited to participate in feedback sessions, surveys, and developer events Have fun Get to know the Dropbox team and other developers in the community Earn badges, kudos, and levels Right now, we have two main categories within the Dropbox Developer Community: API Support & Feedback This page is meant for getting technical support from the Dropbox team and community about specific API issues, as well as providing product feedback and feature requests. The Dropbox team is here to help answer questions, file bugs, and report your feedback about the DBX Platform. If you think you know the answer to a question or have experienced something similar, please feel free to chime in. General Discussion The general discussion page covers everything else, from Dropbox announcements, to sharing code samples, to brainstorming your start up ideas. We encourage all community members to contribute content that will help other developers and engage in the conversations here. If you’re new to the community start here to get an overview of how to post, reply, earn badges, and more. Please help us keep the Dropbox Developer Community respectful and helpful by abiding by our Community Guidelines. Thank you for being a part of the Dropbox Developer Community! We’re looking forward to getting to know you. - The DBX Platform Team15KViews0likes0CommentsSharing 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.GET TEAM FOLDER SIZE
Hi, I want to get the folder size for all my team folders. I am excecuting the following code in python using dropbox SDK : import dropbox import dropbox.team import time from concurrent.futures import ThreadPoolExecutor from logging_config import logger def team_folder(dbx_team, member_id_admin, save_client😞 start_time = time.time() logger.info('Executing extraction of team folders') result = dbx_team.team_team_folder_list() team_folders = result.team_folders folder_details = [] for folder in team_folders: folder_info = { "ID": folder.team_folder_id, "Name": folder.name } folder_details.append(folder_info) #save as json block logger.info("Team folder details have been saved to team_folder.json") end_time = time.time() logger.info("Finished team_folder method in %.2f seconds", end_time - start_time) list_all_contents_teamFolders(folder_details, dbx_team, member_id_admin, save_client) def handle_listing_result(result, namespace😞 """Processes each page of file/folder entries. Refer to the documentation for information on how to use these entries: https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder""" teamFolder_files = [] for entry in result.entries: entry_size = getattr(entry, 'size', 0) # Use '0' if size attribute is not present entry_parent_shared_folder_id = getattr(entry, 'parent_shared_folder_id', '') entry_dict = { "type": str(type(entry)), "path": entry.path_lower, 'size': entry_size, 'parent_shared_folder_id': entry_parent_shared_folder_id, 'namespace_id': namespace } teamFolder_files.append(entry_dict) return teamFolder_files def process_namespace(dbx_admin_with_ns, namespace_id, save_client😞 logger.info(f"Processing namespace: {namespace_id}") teamFolder_files = [] try: listing_result = dbx_admin_with_ns.files_list_folder( path="", recursive=True, include_media_info=False, include_mounted_folders=True ) teamFolder_files = handle_listing_result(listing_result, namespace_id) while listing_result.has_more: listing_result = dbx_admin_with_ns.files_list_folder_continue(cursor=listing_result.cursor) teamFolder_files.extend(handle_listing_result(listing_result, namespace_id)) path_to_save = 'teamFolderSpace/' + namespace_id + '_pathFilesTeamFolder.json' logger.info(f"Uploading files to blob: {path_to_save}") .....save block....... logger.info(f"Upload completed: {path_to_save}") logger.info(f"Finished processing namespace: {namespace_id}") return teamFolder_files except dropbox.exceptions.InternalServerError as e: return logger.error(f"An unexpected error occurred: {e}") except Exception as e: return logger.error(f"An unexpected error occurred: {e}") def list_all_contents_teamFolders(folders_id, dbx_team, member_id_admin, blob_client😞 start_time = time.time() start_position=0 namespace_ids = [folder['ID'] for folder in folders_id] with ThreadPoolExecutor(max_workers=5) as executor: # Adjust max_workers as needed futures = [] for i, namespace_id in enumerate(namespace_ids[start_position:], start=0😞 logger.info(f'Submitting folder {i + 1}/{len(namespace_ids)} with id {namespace_id}') future = executor.submit(process_namespace, dbx_admin.with_path_root(dropbox.common.PathRoot.namespace_id(namespace_id)), namespace_id, blob_client) futures.append(future) .......save block............ end_time = time.time() logger.info("Finished team_folder method in %.2f seconds", end_time - start_time) return "Finished team_folder method" However the excecuting time is extremely long. How can I get the same more efficiently?424Views0likes1CommentHow 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.Solved992Views0likes9Comments