UploadResult Struct

Apps › Core

#include <vortex/vapp.h>

Public Members

bool canceled { false }
int status { 0 }
std::string body
std::string error

Detailed Description

Result of a file upload through VApp::pick_and_upload().

status is 0 both when the user cancels the picker and when the upload never completes, so check canceled first.

Member Variable Documentation

bool canceled { false }

The user closed the picker, so nothing was uploaded

int status { 0 }

HTTP status of the upload; 0 when it never completed

std::string body

Server's reply, like a JSON document

std::string error

Why the upload failed, when status is 0

› Documentation
Appearance
Theme
—