public async Task UploadFiles(int RowId, WebformData WebFormData)
        {
            ControlDictionary = ChildControls.ToControlDictionary();

            List <FileWrapper> Files = new List <FileWrapper>();

            foreach (var pair in ControlDictionary)
            {
                if (pair.Value is EbMobileFileUpload)
                {
                    string pattern = $"{this.TableName}-{RowId}-{pair.Value.Name}*";
                    Files.AddRange(HelperFunctions.GetFilesByPattern(pattern, pair.Value.Name));
                }
            }

            if (Files.Count > 0)
            {
                var ApiFiles = await FormService.Instance.SendFilesAsync(Files);

                WebFormData.FillFromSendFileResp(Files, ApiFiles);
            }
        }
        private async Task <bool> SendAndFillFupData(WebformData webformdata, MobileTable table)
        {
            if (table.NewFiles.Any())
            {
                try
                {
                    List <ApiFileData> resp = await FormService.Instance.SendFilesAsync(table.NewFiles);

                    webformdata.FillFromSendFileResp(table.NewFiles, resp);
                    webformdata.FillUploadedFileRef(table.OldFiles);

                    if (!webformdata.ExtendedTables.Any())
                    {
                        EbLog.Error("Image upload response empty, breaking save");
                        return(false);
                    }
                }
                catch (Exception ex)
                {
                    EbLog.Error("SendFilesAsync error :: " + ex.Message);
                }
            }
            return(true);
        }