Page tree

Versions Compared

Key

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

Overview

Method_name
ReturnsFileInfo
Argumentscontent, name, mimeType

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

Arguments

Method_argument
TypeString
Namecontent

 Base64 encoded file content

Method_argument
TypeString
Namename

Name of file

Method_argument
TypeString
NamemimeType

Mime type of file.

Remarks

 


Examples

 

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

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

See Also