From a976fb4d8053002ea82526147e206c01d8a9e63d Mon Sep 17 00:00:00 2001 From: skyflow-bharti Date: Fri, 6 Feb 2026 14:51:34 +0530 Subject: [PATCH 1/2] SK-2541 support file upload along with record creation --- src/utils/validations/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/utils/validations/index.ts b/src/utils/validations/index.ts index f688040e..58432375 100644 --- a/src/utils/validations/index.ts +++ b/src/utils/validations/index.ts @@ -937,12 +937,8 @@ export const validateUploadFileRequest = (fileRequest: FileUploadRequest, option throw new SkyflowError(SKYFLOW_ERROR_CODE.INVALID_TABLE_IN_UPLOAD_FILE); } - if (!fileRequest?.skyflowId || !Object.prototype.hasOwnProperty.call(fileRequest, '_skyflowId')) { - printLog(logs.errorLogs.EMPTY_SKYFLOW_ID_IN_FILE_UPLOAD, MessageType.ERROR, logLevel); - throw new SkyflowError(SKYFLOW_ERROR_CODE.MISSING_SKYFLOW_ID_IN_UPLOAD_FILE); - } - if (typeof fileRequest?.skyflowId !== 'string' || fileRequest.skyflowId.trim().length === 0) { + if (typeof fileRequest?.skyflowId !== 'string') { printLog(logs.errorLogs.INVALID_SKYFLOW_ID_IN_FILE_UPLOAD, MessageType.ERROR, logLevel); throw new SkyflowError(SKYFLOW_ERROR_CODE.INVALID_SKYFLOW_ID_IN_UPLOAD_FILE); } From 2d1ea5e934b2eb36bb56bdfff37252080fc946ac Mon Sep 17 00:00:00 2001 From: skyflow-bharti Date: Wed, 11 Feb 2026 11:18:44 +0530 Subject: [PATCH 2/2] SK-2541 make id optional --- src/vault/model/request/file-upload/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vault/model/request/file-upload/index.ts b/src/vault/model/request/file-upload/index.ts index 3c000def..a970813c 100644 --- a/src/vault/model/request/file-upload/index.ts +++ b/src/vault/model/request/file-upload/index.ts @@ -6,11 +6,11 @@ class FileUploadRequest { private _columnName: string; // Constructor - constructor(table: string, skyflowId: string, columnName: string) { + constructor(table: string, columnName: string, skyflowId: string = "") { this._table = table; this._skyflowId = skyflowId; this._columnName = columnName; - } + } // Getters and Setters public get table(): string {