Google Drive Attachment Dropzone
Last updated
Was this helpful?
Last updated
Was this helpful?
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:
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.
Col
Card Wrapper
Trigger After Upload Attachment
Trigger Before Render
Trigger Before Upload Attachment
Allowed Values: Attribute
For uploading images select this checkbox.
Allowed Values: Yes/No
For uploading multiple attachments select this checkbox.
Allowed Values: Yes/No
Provide type of content user needs to upload. e.g. .doc, .png, .jpeg, .docx, .xml
Allowed Values: Free text field
Provide connection code to upload in drive
Allowed Values: Free text field
Provide the Google Folder ID where the file will be uploaded.
Allowed Values: Free text field
Provide a message to the user when a file is rejected.
Allowed Values: Free text field
A message which appears when a cursor is positioned over.
Allowed Values: An expression which should return string after evaluation
Select an option to change the placement of the tooltip when appears.
Allowed Values:
left
right
top
bottom
Allowed Values: Yes/No
Allowed Values: Yes/No
Allowed Values: Controller Function
Allowed Values: Controller Function