/// <summary>
        /// Loads the thumbs.
        /// </summary>
        /// <param name="objHttpContext">The HTTP context.</param>
        /// <param name="intFileIndex">The current file index.</param>
        /// <returns></returns>
        private HttpPostedFileHandle[] LoadThumbs(HostContext objHttpContext, int intFileIndex)
        {
            // List of posted tumbnails
            List <HttpPostedFileHandle> objThumbnails = new List <HttpPostedFileHandle>();

            int intThumbIndex = 1;

            // Reference to the posted tumbnail
            HostPostedFile objPostedThumb = null;

            do
            {
                // Get the posted thumbnail
                objPostedThumb = objHttpContext.Request.Files[string.Format("Thumbnail{0}_{1}", intThumbIndex, intFileIndex)];
                if (objPostedThumb != null)
                {
                    // Get the visual webgui upload file
                    objThumbnails.Add(HttpPostedFileHandle.Create(objPostedThumb));
                }

                intThumbIndex++;
            }while (objPostedThumb != null);

            return(objThumbnails.ToArray());
        }
        /// <summary>
        /// Loads the file.
        /// </summary>
        /// <param name="objHttpContext">The HTTP context.</param>
        /// <param name="intFileIndex">The current file index.</param>
        /// <returns></returns>
        private HttpPostedFileHandle LoadFile(HostContext objHttpContext, int intFileIndex)
        {
            HttpPostedFileHandle objFile = null;

            HostPostedFile objPostedFile = objHttpContext.Request.Files[string.Format("SourceFile_{0}", intFileIndex)];

            if (objPostedFile != null)
            {
                objFile = HttpPostedFileHandle.Create(objPostedFile);
            }

            return(objFile);
        }