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

Last updated