the module project doesn't have any angular UI
the steps is add new entity using abp suite then add new method in angular project for uploading this entity data from excel using this method
uploadExcelTemplateByFile = (file: any, config?: Partial<Rest.Config>) => this.restService.request<any, void>( { method: 'POST', url: '/api/app/departments/upload-template', body: file, }, { apiName: this.apiName, ...config }, ); in the method i use file as any then add othe new entity using abp suite and it will change the type of the file from any to IFormFile
i have this code export interface IFormFile { contentType?: string; contentDisposition?: string; headers: Record<string, any>; length: number; name?: string; fileName?: string; }
if i adding any new entity it changed to export interface IFormFile { contentType?: string; contentDisposition?: string; headers: Record<string, StringValues>; length: number; name?: string; fileName?: string; }
also i have this method uploadExcelTemplateByFile = (file: any, config?: Partial<Rest.Config>) => this.restService.request<any, void>( { method: 'POST', url: '/api/app/departments/upload-template', body: file, }, { apiName: this.apiName, ...config }, ); it changed to uploadExcelTemplateByFile = (file: any, config?: Partial<Rest.Config>) => this.restService.request<any, void>( { method: 'POST', url: '/api/app/departments/upload-template', body: file, }, { apiName: this.apiName, ...config }, );
file: any changed to IFormFile
uploadExcelTemplateByFile = (file: IFormFile, config?: Partial<Rest.Config>) => this.restService.request<any, void>( { method: 'POST', url: '/api/app/departments/upload-template', body: file, }, { apiName: this.apiName, ...config }, );
the log file
2024-12-26 12:01:55.081 +03:00 [INF] The authentication demand was rejected because the client application was not found: 'databandNDA_App'.
2024-12-26 12:01:55.083 +03:00 [INF] Request finished HTTP/2 GET https://ndaapi.databand.sa/connect/authorize?response_type=code&client_id=databandNDA_App&state=MkxLNnptY3R2ekpqTkwyVlF0TVBjSHEwZEM1ZlJiZWo1MUpvd2x2bUJjQ3pr&redirect_uri=https%3A%2F%2Fndaform.databand.sa&scope=openid%20offline_access%20databandNDA&code_challenge=VxTHxed4CHeSFGEeXTXnguxQKA0nyE1BQLiQZXQC0mM&code_challenge_method=S256&nonce=MkxLNnptY3R2ekpqTkwyVlF0TVBjSHEwZEM1ZlJiZWo1MUpvd2x2bUJjQ3pr&culture=en&ui-culture=en - 302 null null 35.9775ms
2024-12-26 12:01:55.279 +03:00 [INF] Request starting HTTP/2 GET https://ndaapi.databand.sa/Error?httpStatusCode=400 - null null
2024-12-26 12:01:55.281 +03:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)'
2024-12-26 12:01:55.281 +03:00 [INF] Route matched with {action = "Index", controller = "Error", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.IActionResult] Index(Int32) on controller Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared). 2024-12-26 12:01:55.282 +03:00 [INF] Executing ViewResult, running view ~/Views/Error/Default.cshtml. 2024-12-26 12:01:55.289 +03:00 [INF] Executed ViewResult - view ~/Views/Error/Default.cshtml executed in 6.9756ms. 2024-12-26 12:01:55.289 +03:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 8.2255ms 2024-12-26 12:01:55.289 +03:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' 2024-12-26 12:01:55.290 +03:00 [INF] Request finished HTTP/2 GET https://ndaapi.databand.sa/Error?httpStatusCode=400 - 400 null text/html; charset=utf-8 10.5898ms 2024-12-26 12:01:55.514 +03:00 [INF] Request starting HTTP/2 GET https://ndaapi.databand.sa/__bundles/LeptonX.Global.3253AE0A9501A0665DAC7014DA5B2ED8.css?_v=638708003795576628 - null null 2024-12-26 12:01:55.514 +03:00 [INF] The file /__bundles/LeptonX.Global.3253AE0A9501A0665DAC7014DA5B2ED8.css was not modified 2024-12-26 12:01:55.515 +03:00 [INF] Request finished HTTP/2 GET https://ndaapi.databand.sa/__bundles/LeptonX.Global.3253AE0A9501A0665DAC7014DA5B2ED8.css?_v=638708003795576628 - 304 null text/css 0.7434ms 2024-12-26 12:01:55.516 +03:00 [INF] Request starting HTTP/2 GET https://ndaapi.databand.sa/Abp/ApplicationConfigurationScript - null null 2024-12-26 12:01:55.517 +03:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' 2024-12-26 12:01:55.518 +03:00 [INF] Route matched with {area = "Abp", action = "Get", controller = "AbpApplicationConfigurationScript", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.ActionResult] Get() on controller Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController (Volo.Abp.AspNetCore.Mvc).
2024-12-26 12:01:55.525 +03:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript
2024-12-26 12:01:55.525 +03:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc) in 7.438ms
2024-12-26 12:01:55.525 +03:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)'
2024-12-26 12:01:55.525 +03:00 [INF] Request finished HTTP/2 GET https://ndaapi.databand.sa/Abp/ApplicationConfigurationScript - 200 5966 application/javascript 9.1624ms
2024-12-26 12:01:55.526 +03:00 [INF] Request starting HTTP/2 GET https://ndaapi.databand.sa/__bundles/Views.Error.DefaultErrorComponent.default.F15FCDEA56EC024E1CDCD86CA6B586D8.css?_v=638708003786374757 - null null
2024-12-26 12:01:55.527 +03:00 [INF] The file /__bundles/Views.Error.DefaultErrorComponent.default.F15FCDEA56EC024E1CDCD86CA6B586D8.css was not modified
2024-12-26 12:01:55.527 +03:00 [INF] Request finished HTTP/2 GET https://ndaapi.databand.sa/__bundles/Views.Error.DefaultErrorComponent.default.F15FCDEA56EC024E1CDCD86CA6B586D8.css?_v=638708003786374757 - 304 null text/css 0.4088ms
2024-12-26 12:01:55.527 +03:00 [INF] Request starting HTTP/2 GET https://ndaapi.databand.sa/Abp/ServiceProxyScript - null null
2024-12-26 12:01:55.528 +03:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)'
2024-12-26 12:01:55.528 +03:00 [INF] Route matched with {area = "Abp", action = "GetAll", controller = "AbpServiceProxyScript", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult GetAll(Volo.Abp.AspNetCore.Mvc.ProxyScripting.ServiceProxyGenerationModel) on controller Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController (Volo.Abp.AspNetCore.Mvc).
2024-12-26 12:01:55.535 +03:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript
2024-12-26 12:01:55.535 +03:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) in 7.4062ms
2024-12-26 12:01:55.535 +03:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)'
2024-12-26 12:01:55.536 +03:00 [INF] Request finished HTTP/2 GET https://ndaapi.databand.sa/Abp/ServiceProxyScript - 200 31710 application/javascript 8.9634ms
2024-12-26 12:01:55.536 +03:00 [INF] Request starting HTTP/2 GET https://ndaapi.databand.sa/Abp/ApplicationLocalizationScript?cultureName=en - null null
2024-12-26 12:01:55.537 +03:00 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)'
2024-12-26 12:01:55.537 +03:00 [INF] Route matched with {area = "Abp", action = "Get", controller = "AbpApplicationLocalizationScript", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] GetAsync(Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationLocalizationRequestDto) on controller Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController (Volo.Abp.AspNetCore.Mvc).
2024-12-26 12:01:55.542 +03:00 [INF] Request starting HTTP/2 GET https://ndaapi.databand.sa/__bundles/LeptonX.Global.4D60287B5E73BF5E2630D6B5AE4750A8.js?_v=638708003801887975 - null null
2024-12-26 12:01:55.542 +03:00 [INF] The file /__bundles/LeptonX.Global.4D60287B5E73BF5E2630D6B5AE4750A8.js was not modified
2024-12-26 12:01:55.542 +03:00 [INF] Request finished HTTP/2 GET https://ndaapi.databand.sa/__bundles/LeptonX.Global.4D60287B5E73BF5E2630D6B5AE4750A8.js?_v=638708003801887975 - 304 null application/javascript 0.7487ms
2024-12-26 12:01:55.543 +03:00 [INF] Executing ContentResult with HTTP Response ContentType of application/javascript
2024-12-26 12:01:55.543 +03:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 6.2035ms
2024-12-26 12:01:55.543 +03:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)'
2024-12-26 12:01:55.544 +03:00 [INF] Request finished HTTP/2 GET https://ndaapi.databand.sa/Abp/ApplicationLocalizationScript?cultureName=en - 200 60075 application/javascript 8.2286ms