Dropbox
Introduction
The purpose of this manual is to detail how to configure and integrate Qflow with Dropbox to allow interaction between both platforms, thus allowing you to upload, consult and delete files in Dropbox.
Dropbox has the following actions:
See Actions for the description and content of each one.
Prerequisites
It is necessary to have a Dropbox account. This can be done from here.
Application parameter
To establish the connection it is necessary to have at least one application parameter (see Application parameters) that allows communication to be established between Qflow and Dropbox. This parameter can be created from the service task configuration in Qflow. (see Configuring Connectors from a Service Task).
To create a Dropbox application parameter, the following steps are required.
Application parameter using OAuth
This type of application parameter requires loggin in to your Dropbox account from Qflow. This is done in the connector configuration following the steps of the OAuth flow.
Once the previous steps are completed, it will be posible interact with Dropbox from Qflow.
Actions
The following actions can be performed with Dropbox:
Upload file
This action allows you to upload a file to Dropbox. The uploading file must be provided. Optionally, you can add a path where the file will be uploaded, if no path is provided, the file will be uploaded to the Dropbox root folder, a file name, which will overwrite the current file name of the uploading file, and allows to check if you want to replace the file (in case there is a file with the same name).
Inputs |
Description |
---|---|
File |
Required. The file to be uploaded to Dropbox. The file size can’t be greater than 50 MB |
Path |
Path where the file will be stored in Dropbox, with folders separated by ‘/’ or ‘\’ |
File name |
Name that the file will have in Dropbox. The base name of the file will be overwritten. |
Overwrite |
Indicates whether you want to overwrite the file (in case there is a file with the same name). |
Outputs |
Description |
---|---|
File preview link |
Provide a preview link for the file in Dropbox |
File identifier |
Provide the file identifier in Dropbox |
Get file
This action allows you to get the contents of a file in Dropbox. File name must be provided. Optionally, you can indiccate the file path in Dropbox, if you don’t provide a path, the file will be searched in the root folder of Dropbox.
Inputs |
Description |
---|---|
File name |
Required. The file name in Dropbox including it’s extension (for example: myFile.txt) |
Path |
Path of the file in Dropbox, with folders separated by ‘/’ or ‘\’ |
Outputs |
Description |
---|---|
File |
The file obtained from Dropbox. The file size can’t be greater than 50 MB |
Get link for web viewing
This action allows you to obtain a file preview link from Dropbox. File name must be provided. Optionally, you can specify the file path in Dropbox if no path is provided, the file will be searched in the Dropbox root folder.
Inputs |
Description |
---|---|
File name |
Required. The file name in Dropbox including it’s extension (for example: myFile.txt) |
Path |
Path of the file in Dropbox, with folders separated by ‘/’ or ‘\’ |
Outputs |
Description |
---|---|
File preview link |
Required. Link that allows the preview of the file in Dropbox |
Delete file
This action allows you to delete a file in Dropbox. File name must be provided. Optionally, you can indiccate the file path in Dropbox, if you don’t provide a path, the file will be searched in the root folder of Dropbox.
Inputs |
Description |
---|---|
File name |
Required. The file name in Dropbox including it’s extension (for example: myFile.txt) |
Path |
Path of the file in Dropbox, with folders separated by ‘/’ or ‘\’ |