From a116208a6da0a3d3a6aa92352f5c33f3ac336e73 Mon Sep 17 00:00:00 2001 From: elijahnicpon Date: Thu, 28 Jul 2022 19:17:05 -0400 Subject: [PATCH] GUACAMOLE-1320: Provide chunked file upload mechanism - update uploadHandler documentation --- .../main/frontend/src/app/rest/services/tunnelService.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guacamole/src/main/frontend/src/app/rest/services/tunnelService.js b/guacamole/src/main/frontend/src/app/rest/services/tunnelService.js index c5a10d6e4..5cc547b40 100644 --- a/guacamole/src/main/frontend/src/app/rest/services/tunnelService.js +++ b/guacamole/src/main/frontend/src/app/rest/services/tunnelService.js @@ -393,7 +393,11 @@ angular.module('rest').factory('tunnelService', ['$injector', }; /** - * Handler for the upload process. + * Handles the recursive upload process. Each time it is called, a + * chunk is made with createChunk(), starting at the offset parameter. + * The chunk is then sent by uploadChunk(), which recursively calls + * this handler until the upload process is either completed and the + * promise is resolved, or fails and the promise is rejected. * * @param {Number} offset * The byte at which to begin the chunk.