{% extends "base.html" %} {% block title %}Dropbox Setup{% endblock %} {% block content %}
{% if user_mode %}

Connect Dropbox {% if integration_name %}— {{ integration_name }}{% endif %}

Authorize DocuElevate to access your Dropbox account. Your credentials are stored securely in your personal integration record.

{% if is_configured %} {% else %} {% endif %} {% else %}

Dropbox Integration Setup

Configure the Dropbox integration for DocuElevate using our setup wizard.

Note: You need to create a Dropbox app and obtain API credentials. The setup wizard will guide you through this process.

{% endif %}

Quick Setup Guide

Step 1: Create a Dropbox App

  1. Go to the Dropbox Developer Apps Console
  2. Click "Create app"
  3. Select "Scoped access" for API
  4. Choose "Full Dropbox" access (or "App folder" for more restricted access)
  5. Give your app a name (e.g., "DocuElevate")
  6. Click "Create app"

Step 2: Configure App Permissions

  1. In your app's settings page, go to the "Permissions" tab
  2. Enable the following permissions:
    • files.content.write (to upload files)
    • files.content.read (if you need to read file content)
  3. Click "Submit" to save changes

Step 3: Set OAuth 2 Redirect URI

  1. In your app's settings page, go to the "OAuth 2" section
  2. Add a redirect URI: {{ callback_url }}
  3. Click "Add" to save the redirect URI

{% if user_mode %}OAuth Wizard{% else %}Complete Setup with Wizard{% endif %}

{% if user_mode and global_creds_available %}

Using shared application credentials

Your administrator has enabled shared Dropbox app credentials. You can authorize your account without supplying your own App Key and Secret.

{% if folder_path %}

Target folder (from integration settings)

{{ folder_path }}

{% endif %}
{% else %}
{% if not user_mode %}

Enter the folder path where files should be uploaded (e.g., /Documents/Uploads)

{% else %} {% if folder_path %}

Target folder (from integration settings)

{{ folder_path }}

{% endif %} {% endif %}
{% endif %} {% if not user_mode %}
{% if is_configured %} {% else %} {% endif %}

{% if is_configured %} Dropbox integration is properly configured! Your refresh token is valid. {% else %} Dropbox integration is not completely configured or token may be invalid. {% endif %}

Configuration for Worker Nodes

Copy these environment variables to configure all worker nodes:

DROPBOX_APP_KEY={{ app_key_value }}
DROPBOX_APP_SECRET={{ app_secret_value|default('YOUR_APP_SECRET', true) }}
DROPBOX_REFRESH_TOKEN={{ refresh_token_value|default('YOUR_REFRESH_TOKEN', true) }}
DROPBOX_FOLDER={{ folder_path|default('/Documents/Uploads', true) }}

Add these variables to your .env file or environment configuration.

{% endif %}

Need More Information?

For detailed instructions and troubleshooting, refer to the Dropbox Setup Documentation.

{% if user_mode %} Back to Integrations {% else %} Back to Status {% endif %}
{% endblock %} {% block scripts %} {% endblock %}