# HG changeset patch # User Sebastien Jodogne # Date 1561391178 -7200 # Node ID 4944b03bb9c69b82fed7d332a580bc4c011face8 # Parent 6fe42a335a8068d14f125d682b81f7db294ac1f9 notes diff -r 6fe42a335a80 -r 4944b03bb9c6 Core/HttpServer/HttpServer.cpp --- a/Core/HttpServer/HttpServer.cpp Mon Jun 24 17:15:03 2019 +0200 +++ b/Core/HttpServer/HttpServer.cpp Mon Jun 24 17:46:18 2019 +0200 @@ -483,6 +483,7 @@ //chunkStore.Print(); + // TODO - Refactor using class "MultipartStreamReader" try { FindIterator last; @@ -841,6 +842,10 @@ ct->second.size() >= MULTIPART_FORM_LENGTH && !memcmp(ct->second.c_str(), MULTIPART_FORM, MULTIPART_FORM_LENGTH)) { + /** + * The user uses the "upload" form of Orthanc Explorer, for + * file uploads through a HTML form. + **/ status = ParseMultipartForm(body, connection, headers, ct->second, server.GetChunkStore()); isMultipartForm = true; }