feat: implement chunked upload handler and update config validation for session timeout

This commit is contained in:
2025-07-17 18:05:59 +02:00
parent d8e9974a93
commit 35e4a6fc46
4 changed files with 7 additions and 7 deletions

View File

@ -3,6 +3,7 @@
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
@ -32,8 +33,6 @@ func handleChunkedUpload(w http.ResponseWriter, r *http.Request) {
// Extract headers for chunked upload
sessionID := r.Header.Get("X-Upload-Session-ID")
chunkNumberStr := r.Header.Get("X-Chunk-Number")
totalChunksStr := r.Header.Get("X-Total-Chunks")
contentRange := r.Header.Get("Content-Range")
filename := r.Header.Get("X-Filename")
// Handle session creation for new uploads