Reference

Endpoint Upload file


Name

upload_file

Description

Uploads a file from a disk

Parameters

Parameter Required Options
Name: TargetFilePath

Label: TargetFilePath

Specify a file path in Dropbox to save file to
YES
Name: SourceFilePath

Label: SourceFilePath

Specify a disk file path to upload
YES

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
Id DT_WSTR nvarchar(4000) 4000
Name DT_WSTR nvarchar(4000) 4000
PathLower DT_WSTR nvarchar(4000) 4000
PathDisplay DT_WSTR nvarchar(4000) 4000
ClientModified DT_DBTIMESTAMP datetime
ServerModified DT_DBTIMESTAMP datetime
Revision DT_WSTR nvarchar(4000) 4000
Size DT_I8 bigint
IsDownloadable DT_BOOL bit
ContentHash DT_WSTR nvarchar(4000) 4000
If the column you are looking for is missing, consider customizing Dropbox Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime.

Examples

SSIS

Use Dropbox Connector in API Source or in API Destination SSIS Data Flow components to read or write data.

API Source

API Source - Dropbox
Read and write Dropbox data effortlessly. Integrate, manage, and automate files and folders — almost no coding required.
Dropbox
Upload file
Required Parameters
TargetFilePath Fill-in the parameter...
SourceFilePath Fill-in the parameter...
IsMultiPart Fill-in the parameter...
SSIS API Source - Read from table or endpoint

API Destination

API Destination - Dropbox
Read and write Dropbox data effortlessly. Integrate, manage, and automate files and folders — almost no coding required.
Dropbox
Upload file
Required Parameters
TargetFilePath Fill-in the parameter...
SourceFilePath Fill-in the parameter...
IsMultiPart Fill-in the parameter...
SSIS API Destination - Access table or endpoint

ODBC application

Use these SQL queries in your ODBC application data source:

Upload a file

<p>Uploads a local file to Dropbox. Provide the Dropbox destination path in <code>TargetFilePath</code> and the full local file path in <code>SourceFilePath</code>.</p>

SELECT *
FROM upload_file
WITH (TargetFilePath='/MySubfolder/file-I-want-to-upload-to-dropbox.dat'
     ,SourceFilePath='C:\file\I\want\to\upload.dat')

SQL Server

Use these SQL queries in SQL Server after you create a data source in Data Gateway:

Upload a file

<p>Uploads a local file to Dropbox. Provide the Dropbox destination path in <code>TargetFilePath</code> and the full local file path in <code>SourceFilePath</code>.</p>

DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT *
FROM upload_file
WITH (TargetFilePath=''/MySubfolder/file-I-want-to-upload-to-dropbox.dat''
     ,SourceFilePath=''C:\file\I\want\to\upload.dat'')';

EXEC (@MyQuery) AT [LS_TO_DROPBOX_IN_GATEWAY];