Upload

interface Upload

A class that represents a file upload in a multipart upload See https://github.com/jaydenseric/graphql-multipart-request-spec

Use this to map your upload custom scalar and the apollo runtime will be able to extract them and send them out of band.

customScalarsMapping.set(mapOf( "Upload" to "com.apollographql.apollo3.api.Upload" ))

If you have a JVM File at hand, see also com.apollographql.apollo3.api.DefaultUpload.Builder.content

Functions

writeTo
Link copied to clipboard
common
abstract fun writeTo(sink: BufferedSink)
Writes the content of this request to sink.

Properties

contentLength
Link copied to clipboard
common
abstract val contentLength: Long
Returns the number of bytes that will be written to sink in a call to .
contentType
Link copied to clipboard
common
abstract val contentType: String
fileName
Link copied to clipboard
common
abstract val fileName: String?
The fileName to send to the server.

Inheritors

DefaultUpload
Link copied to clipboard