diff --git a/src/FileUploader.ts b/src/FileUploader.ts index 7001bcb..4e117df 100644 --- a/src/FileUploader.ts +++ b/src/FileUploader.ts @@ -61,15 +61,14 @@ export class FileUploader { 'Content-Type': 'text/plain' } + // currently only web approach is supported for file upload + // therefore log is part of response with debug enabled and must be parsed return this.requestClient .post(uploadUrl, formData, undefined, 'application/json', headers) .then(async (res) => { - // for web approach on Viya if ( - this.sasjsConfig.debug && - (this.sasjsConfig.useComputeApi === null || - this.sasjsConfig.useComputeApi === undefined) && - this.sasjsConfig.serverType === ServerType.SasViya + this.sasjsConfig.serverType === ServerType.SasViya && + this.sasjsConfig.debug ) { const jsonResponse = await parseSasViyaDebugResponse( res.result as string,