# Google Drive Attachment Dropzone

## Description:

Google Drive Attachment

Use this component to upload multimedia content e.g. images, videos, pdf etc... to google drive folder.

You can access the uploaded file as **service/acturl** where 'acturl' is the recieved file url after the file uploaded.

You can use Trigger After Upload to get the uploaded file details in the props e.g.. `#{props.acturl}` to get the actual file URL,`#{props.fileId}` to get the ra file ID.

**Prerequisites:**

* You need to create a Google drive service account.

  **Referenece:** <https://console.developers.google.com>
* After creating the account you need to generate a p12 credentials file. After generating the file, upload this file in the custom handlers using the **Manage Custom Handlers** screen with the name **subDomain-gdrive.p12**.
* Update profile value of **GDRIVE\_SERVICE\_ACCOUNT\_ID** with your service account email.
* Create a profile with profile code as the concatenation of string 'GDF\_' and the datasource name.

  e.g.. suppose datasource name is MyDatasource, then profile code will be GDF\_MyDatasource.

  The value of this profile will be the google drive folder ID where you wish to upload the attachment.

### Allowed Parent Components:

1. Col

### Allowed Child Components:

1. Card Wrapper
2. Trigger After Upload Attachment
3. Trigger Before Render
4. Trigger Before Upload Attachment

### Properties

### ➤ View Attribute

Allowed Values: Attribute

### ➤ Images

For uploading images select this checkbox.

Allowed Values: Yes/No

### ➤ Multi Attach

For uploading multiple attachments select this checkbox.

Allowed Values: Yes/No

### ➤ Accept

Provide type of content user needs to upload. e.g. .doc, .png, .jpeg, .docx, .xml

Allowed Values: Free text field

### ➤ Connection Code

Provide connection code to upload in drive

Allowed Values: Free text field

### ➤ Folder Id

Provide the Google Folder ID where the file will be uploaded.

Allowed Values: Free text field

### ➤ Rejection Message

Provide a message to the user when a file is rejected.

Allowed Values: Free text field

### ➤ Tool Tip

A message which appears when a cursor is positioned over.

Allowed Values: An expression which should return string after evaluation

### ➤ Tool Tip Position

Select an option to change the placement of the tooltip when appears.

Allowed Values:

1. left
2. right
3. top
4. bottom

### ➤ Insert Allowed

Allowed Values: Yes/No

### ➤ Update Allowed

Allowed Values: Yes/No

### ➤ On After Upload

Allowed Values: Controller Function

### ➤ On Before Upload

Allowed Values: Controller Function


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudio.io/ui-components/widgets/googledriveattachmentdropzone.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
