ContainerUpload constructor
Creates a new ContainerUpload.
content Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with contentBase64 & source
contentBase64 Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the base64encode interpolation function. See here for the reason. Conflicts with content & source
executable If true, the file will be uploaded with user executable permission. Defaults to false.
file Path to the file in the container where is upload goes to
permissions The permission mode for the file in the container. Has precedence over executable.
source A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with content & contentBase64
sourceHash If using source, this will force an update if the file content has updated but the filename has not.
Implementation
const ContainerUpload({
this.content,
this.contentBase64,
this.executable,
required this.file,
this.permissions,
this.source,
this.sourceHash,
});