Upload
AutomatR.GoogleDrive.Activities.Upload
The "Upload" activity in AutomatR is part of the Google Drive activities package, allowing automation processes to upload files from the local drive to a specified folder within the Google Drive user's account. This activity streamlines the process of uploading files, enhancing the efficiency of automation workflows.
Properties
Name | Description |
---|---|
Input | |
Upload File Path | Specifies the path of the file on your local drive that needs to be uploaded to Google Drive. It should include the file name and path (e.g., "D:\myfiles\uploadthis\1.txt"). String variables containing the file path. |
Folder Name Or Path | Specifies the folder name or path on Google Drive where the file should be uploaded. It represents the location within Google Drive. String variables containing the folder name or path. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Upload" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. For example, if the delay is 1000 milliseconds or 1 sec, set it to 1. |
Output | |
Result | Outputs the result of the "Upload" operation, indicating whether the file upload was successful or encountered any errors. Variables of relevant types (e.g., Boolean variables) to store the operation result. |
How to use:
- Drag and drop the "Upload" activity onto the workflow.
- Configure the properties by specifying the local file path and the folder name or path within Google Drive.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to upload the specified file to the specified folder on Google Drive.
Example: Consider an example where the "Upload" activity is used to upload a file named "1.txt" from the local drive to a folder named "Uploadhere" within Google Drive:
Upload:
Display Name: "Upload Text File"
Upload File Path: "D:\\myfiles\\uploadthis\\1.txt"
Folder Name Or Path: "Root\\Uploadhere"
Result: isUploadSuccessful
In this example, the activity uploads the "1.txt" file to the "Uploadhere" folder within Google Drive. The result of the operation (success or failure) is stored in the Boolean variable "isUploadSuccessful" for further handling in the workflow.