diff --git a/internal/handlers/web/documents.go b/internal/handlers/web/documents.go index fa6047c..12604ce 100644 --- a/internal/handlers/web/documents.go +++ b/internal/handlers/web/documents.go @@ -416,10 +416,7 @@ func UploadDocumentsHandler(w http.ResponseWriter, r *http.Request) { uploadDuration := time.Since(uploadStart) // Get the actual size that was uploaded - var fileSize int64 - if sizeTracker != nil { - fileSize = sizeTracker.Size() - } + fileSize := sizeTracker.Size() // Verify the upload size matches the expected file size sizeMatch := true