| CORE_ATTACHMENT_FROM_BASE64 | CORE Endpoint | |
| /rpc/core/?method=CORE_ATTACHMENT_FROM_BASE64 | ||
|
This method allows you to create an attachment based on a Base64 stream. For example, you might create an image using the Canvas object. Note: You can attach to a SUPPORT_ISSUE_MANAGE in the parent space. This way you can get a snapshot of the screen included. To attach to a folder created using SETUP_SITE_ATTACHMENT_FOLDER_MANAGE, set &object=417 & &objectcontext=[folder ID]. |
| PARAMETERS | TYPE | ||
| Base64 | Text | Mandatory. The Base64 representation of the file | |
| Bucket | Numeric | An Amazon S3 bucket as configured via SETUP_AWS_S3_BUCKET_MANAGE | |
| BucketFileName | Text (1000) | Defaults to [object title]/[object id]/[filename]. | |
| FileName | Text | Mandatory. Must be .png, .jpg, txt, csv, or .gif. If storing in a S3 bucket, this is the filename which a download will default to (ie for CORE_ATTACHMENT_DOWNLOAD). This doesn't need to be the same as the BucketFileName | |
| Notes | Text (2000) | ||
| Object | Numeric | Mandatory. | |
| ObjectContext | Numeric | Mandatory. | |
| PublicType | Numeric | 1=As Per Normal Object Rules [default],2=Public,3=Not Public. To be able to choose 2 you need the business profile item 460 set to Y | |
| ShowAsDownload | Text (1) | Y/N | |
| Status | Numeric | As per SETUP_ATTACHMENT_STATUS_SEARCH | |
| Title | Text (250) | Mandatory | |
| Type | Numeric | As per SETUP_ATTACHMENT_TYPE_SEARCH |
| RETURNS | |
| attachmentlink - to reference the produced image file: /image/[attachmentlink] |