From 3747cd090470f1ab0885dbeaa99d32f161fc22b5 Mon Sep 17 00:00:00 2001 From: skyflow-bharti Date: Fri, 22 May 2026 22:13:32 +0530 Subject: [PATCH 1/2] SK-2819 test the large file --- src/client/index.ts | 3 +++ src/utils/helpers/index.ts | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/client/index.ts b/src/client/index.ts index 2f874530..7ea2d7ba 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -97,13 +97,16 @@ class Client { if (request.headers?.['content-type']?.includes(ContentType.FORMURLENCODED) || request.headers?.['content-type']?.includes(ContentType.FORMDATA)) { + console.log('Request body sent as is without stringifying since content-type is form related'); httpRequest.send(request.body); + console.log('Request body sent as is without stringifying since content-type is form related'); } else { /* Earlier we were stringifying here, but due to TS, we're stringifying at the point where we are creating the request. Since the body parameter doesn't accept JSON object. */ httpRequest.send(request.body); + console.log('Request body sent as is without stringifying since content-type is form related'); } httpRequest.onload = () => { diff --git a/src/utils/helpers/index.ts b/src/utils/helpers/index.ts index 58fa0a43..9de245d7 100644 --- a/src/utils/helpers/index.ts +++ b/src/utils/helpers/index.ts @@ -211,9 +211,9 @@ export const fileValidation = (value, required: Boolean = false, fileElement) => } } } - if (value.size > 32000000) { - throw new SkyflowError(SKYFLOW_ERROR_CODE.INVALID_FILE_SIZE, [], true); - } + // if (value.size > 32000000) { + // throw new SkyflowError(SKYFLOW_ERROR_CODE.INVALID_FILE_SIZE, [], true); + // } if (Object.prototype.hasOwnProperty.call(fileElement, 'blockEmptyFiles') && fileElement.blockEmptyFiles) { if (value.size === 0) { throw new SkyflowError(SKYFLOW_ERROR_CODE.INVALID_FILE_SIZE, [], true); From f71fba79132f756e9f3e0408a6df6471d91c4aa2 Mon Sep 17 00:00:00 2001 From: skyflow-bharti Date: Fri, 22 May 2026 16:48:15 +0000 Subject: [PATCH 2/2] [AUTOMATED] Release - 2.7.7-dev.3747cd0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index aa5019e7..e4e10c6d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "skyflow-js", "preferGlobal": true, "analyze": false, - "version": "2.7.7", + "version": "2.7.7-dev.3747cd0", "author": "Skyflow", "description": "Skyflow JavaScript SDK", "homepage": "https://github.com/skyflowapi/skyflow-js",