more changes
This commit is contained in:
@@ -212,7 +212,9 @@ upload_file_in_chunks() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Send metadata as query params (for Java proxy to capture) and only file as multipart
|
# Send metadata as query params (for Java proxy to capture) and only file as multipart
|
||||||
|
# Add explicit headers that nginx might require
|
||||||
RESPONSE=$(curl -s -X POST "$API_BASE/upload/chunk?uploadSessionId=$SESSION_ID&fileType=$file_type&chunkIndex=$chunk_index&totalChunks=$total_chunks&fileName=$file_name" \
|
RESPONSE=$(curl -s -X POST "$API_BASE/upload/chunk?uploadSessionId=$SESSION_ID&fileType=$file_type&chunkIndex=$chunk_index&totalChunks=$total_chunks&fileName=$file_name" \
|
||||||
|
-H "X-Forwarded-For: 127.0.0.1" \
|
||||||
-F "chunk=@$chunk_file")
|
-F "chunk=@$chunk_file")
|
||||||
|
|
||||||
if [ "$DEBUG_MODE" = "true" ]; then
|
if [ "$DEBUG_MODE" = "true" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user