changeset 3445:4944b03bb9c6

notes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 24 Jun 2019 17:46:18 +0200
parents 6fe42a335a80
children 52da6e9335dd
files Core/HttpServer/HttpServer.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
       }