Page tree
Skip to end of metadata
Go to start of metadata

Overview

FileInfo Files.AddBase64 ( content, name, mimeType )

 Adds a new file to repository with base64 encoded content and returns created file info.

Arguments

String content

 Base64 encoded file content

String name

Name of file

String mimeType

Mime type of file.

Remarks


Examples

Usage
// PDF example
var pdfFile = $Files.AddBase64(invoice, 'temp.pdf', 'application/pdf');

// Zip example
var zipFile = $Files.AddBase64(invoices, 'temp.zip', 'application/zip');

See Also