Input options for defining a file to be uploaded with ‘setInputFiles’.

Definition

input InputFileOptions {
  name: String!
  mimeType: String!
  data: String!
  encoding: BufferEncoding
}

Fields

name

String! The name of the file. Example: "document.pdf".

mimeType

String! The MIME type of the file. Example: "application/pdf".

data

String! The content of the file, Base64 encoded. Example: "JVBERi0xLjQKJ..." (for a PDF)

encoding

BufferEncoding Specifies the encoding of the original data if the data field represents text that was then Base64 encoded (e.g., a text file’s content). Common values include UTF8 or ASCII. If the data field is Base64 encoded binary (like an image), this field is often not needed or can be omitted. See BufferEncoding enum.