NAME

Apertur::SDK::Resource::Upload - Image upload operations

DESCRIPTION

Handles uploading images to an upload session, both plain multipart and end-to-end encrypted.

METHODS

image($uuid, $file, %options)

Uploads an image via multipart POST. $file can be a file path string or a scalar reference containing raw bytes. Options: filename, mimeType (or mime_type), source, password.

image_encrypted($uuid, $file, $public_key, %options)

Encrypts an image with AES-256-GCM (key wrapped with RSA-OAEP) and uploads it as a JSON payload. Requires Crypt::OpenSSL::RSA and CryptX. Options: same as image.