Home > @magiclane/maps-sdk > LogUploader > upload
LogUploader.upload() method
Starts uploading a log file to the server.
Initiates an upload operation; progress and final status are reported via the onLogStatusChanged callback supplied when the LogUploader was created.
Signature:
upload(options: {
logPath: string;
userName: string;
userMail: string;
details?: string;
externalFiles?: string[];
}): GemError;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
options |
{ logPath: string; userName: string; userMail: string; details?: string; externalFiles?: string[]; } |
Upload options |
options properties:
- logPath: string
- userName: string
- userMail: string
- Optional details?: string
- Optional externalFiles?: string[]
Returns:
GemError
A GemError indicating the immediate outcome of the start request (for example, GemError.success when the operation was accepted).