Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

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

FileInfo myFiles.AddBase64(content: string, name: string, mimeType: string)

Arguments

string content
Base64 encoded file content
string name
Name of file
string mimeType
Mime type of file.

Example

Usage

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

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

See Also