Skip to content

Dropbox Writer

The Dropbox Writer component lets you save text or data directly into a Dropbox folder from within Nappai.
You simply provide the text you want to store, choose the folder in Dropbox, give the file a name, and the component uploads it for you.

How it Works

When you run the component, Nappai first checks that you have a valid Dropbox API credential set up.
If the credential is present, the component uses the Dropbox API to create a new file in the selected folder.
The file’s name and content come from the inputs you provide, and the component returns the full Dropbox path to the newly created file.

Inputs

Credential
Select a Dropbox API credential that you have previously configured in Nappai’s credentials section.
The credential must include the necessary Dropbox permissions.

File content
DataInput: The text or data you want to save in Dropbox.

Select folder to upload
FileInput (directory selector): Pick the Dropbox folder where the file will be stored.

File Name
MessageTextInput (required): The name you want to give the file (including extension, e.g., report.txt).

Outputs

Path to File
Text: The full Dropbox path to the file that was just uploaded.
You can use this output to reference the file later in your workflow or to pass it to other components.

Usage Example

  1. Configure Credentials – In the Nappai dashboard, go to Credentials, add a new Dropbox API credential, and grant the required permissions.
  2. Add the Dropbox Writer – Drag the component onto your workflow canvas.
  3. Set the Inputs
    • Choose the credential you just created.
    • Select the target folder in Dropbox.
    • Enter the file name (e.g., summary.txt).
    • Provide the text you want to save (you can connect this to the output of a previous component).
  4. Run the Workflow – The component uploads the file and outputs the Dropbox path, which you can use in subsequent steps.
  • Dropbox Loader – Reads files from Dropbox into Nappai.
  • Dropbox Reader – Parses the contents of a Dropbox file.

Tips and Best Practices

  • Use descriptive file names so you can easily locate the file later in Dropbox.
  • Check folder permissions: Make sure the folder you select allows file creation for the account linked to your credential.
  • Validate the output: Connect the Path to File output to a logging component to confirm the upload succeeded.

Security Considerations

  • Keep your Dropbox API credentials secure; never expose them in public workflows.
  • Use the least‑privilege permissions needed for the task (e.g., only the folders you need to write to).
  • Review the Dropbox API logs periodically to detect any unauthorized access.