pub fn upload<R: Read + Seek>(
ctx: &RestContext,
path: &str,
method: &str,
params: HashMap<String, Value>,
reader: R,
mime_type: &str,
progress: Option<UploadProgressFn>,
) -> Result<Response>Expand description
Upload a file to a REST API endpoint
ยงArguments
ctx- REST context for authenticationpath- API endpoint pathmethod- HTTP method for initial requestparams- Parameters for initial API requestreader- Reader for file contentmime_type- MIME type of the fileprogress- Optional progress callback