From 7df4064cf5895439698b5e31c615942d921f8780 Mon Sep 17 00:00:00 2001 From: pratik Date: Wed, 22 Oct 2025 13:30:01 -0500 Subject: [PATCH] more changes --- deploy-chunked-simple.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/deploy-chunked-simple.sh b/deploy-chunked-simple.sh index db9e120..94a00f2 100644 --- a/deploy-chunked-simple.sh +++ b/deploy-chunked-simple.sh @@ -208,16 +208,11 @@ upload_file_in_chunks() { if [ "$DEBUG_MODE" = "true" ]; then echo "" echo "DEBUG: SESSION_ID='$SESSION_ID'" - echo "DEBUG: Uploading to: $API_BASE/upload/chunk" + echo "DEBUG: Uploading to: $API_BASE/upload/chunk?uploadSessionId=$SESSION_ID&fileType=$file_type&chunkIndex=$chunk_index&totalChunks=$total_chunks&fileName=$file_name" fi - # Send all params as form fields with the multipart file - RESPONSE=$(curl -s -X POST "$API_BASE/upload/chunk" \ - -F "uploadSessionId=$SESSION_ID" \ - -F "fileType=$file_type" \ - -F "chunkIndex=$chunk_index" \ - -F "totalChunks=$total_chunks" \ - -F "fileName=$file_name" \ + # Send metadata as query params (for Java proxy to capture) and only file as multipart + RESPONSE=$(curl -s -X POST "$API_BASE/upload/chunk?uploadSessionId=$SESSION_ID&fileType=$file_type&chunkIndex=$chunk_index&totalChunks=$total_chunks&fileName=$file_name" \ -F "chunk=@$chunk_file") if [ "$DEBUG_MODE" = "true" ]; then