UploadFileInput
Flexible file upload input supporting multiple upload methods and configurations
input UploadFileInput {
language: String
uploadType: UploadType!
cacheControl: CacheControlInput
base64File: MediaBase64FileInput
file: StandardFileUploadInput
urlFile: UrlFileUploadInput
}
Fields
UploadFileInput.language
● String
scalar
Language code for the uploaded file content.
Specifies the language context for the file, used for localization and content organization. Must be a valid 2-character language code (e.g., 'EN', 'DE', 'FR').
UploadFileInput.uploadType
● UploadType!
non-null enum
Method of file upload to use.
Determines whether the file should be stored internally or referenced externally. Affects how the file is processed, stored, and accessed.
UploadFileInput.cacheControl
● CacheControlInput
input
HTTP cache control settings for the uploaded file.
Controls how browsers and CDNs cache the file content. Optional configuration that defaults to optimal caching settings if not specified.
UploadFileInput.base64File
● MediaBase64FileInput
input
Base64 encoded file upload option.
Use this method when uploading files as base64 encoded strings. Suitable for small files or when direct file upload is not available. Maximum size is approximately 10MB.
UploadFileInput.file
● StandardFileUploadInput
input
Direct file upload from filesystem.
Use this method for uploading files directly from the client's filesystem using GraphQL multipart request specification. Most efficient for larger files.
UploadFileInput.urlFile
● UrlFileUploadInput
input
Upload file from a publicly accessible URL.
Use this method to upload files by providing a URL. The system will download the file from the specified location and store it locally.
Member Of
MediaAttachmentInput
input ● MediaDocumentInput
input ● MediaImageInput
input ● UpdateMediaDocumentInput
input ● UpdateMediaImageInput
input