more changes

This commit is contained in:
pratik
2025-10-22 13:30:01 -05:00
parent 4c2f46a725
commit 7df4064cf5

View File

@@ -208,16 +208,11 @@ upload_file_in_chunks() {
if [ "$DEBUG_MODE" = "true" ]; then if [ "$DEBUG_MODE" = "true" ]; then
echo "" echo ""
echo "DEBUG: SESSION_ID='$SESSION_ID'" 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 fi
# Send all params as form fields with the multipart file # Send metadata as query params (for Java proxy to capture) and only file as multipart
RESPONSE=$(curl -s -X POST "$API_BASE/upload/chunk" \ 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 "uploadSessionId=$SESSION_ID" \
-F "fileType=$file_type" \
-F "chunkIndex=$chunk_index" \
-F "totalChunks=$total_chunks" \
-F "fileName=$file_name" \
-F "chunk=@$chunk_file") -F "chunk=@$chunk_file")
if [ "$DEBUG_MODE" = "true" ]; then if [ "$DEBUG_MODE" = "true" ]; then