Skip to Content
Sep 01 at 02:25 PM

Not uploaded as binary/text type is unknown

134 Views Last edit Sep 02 at 10:46 AM 2 rev

Hi Experts,

I have created a folder and uploaded an excel template to my webapp. When I click the downloaded template button excel is downloading. it is working fine locally in my BAS. When I am trying to deploy the application excel file is not uploaded to the ABAP repository find the screenshot below.



My code

onPressDownloadTemplate: function (Event) { var oBundle = this.getView().getModel("i18n").getResourceBundle(); var sPath = sap.ui.require.toUrl("com/sap/alid/Promotion/excel/Create_Promotion_En.xlsx"); const oA = document.createElement("a"); oA.href = sPath; = "none"; = (oBundle.getText("lblPromotioncreation") + ".xlsx").replace(/\s/g, ''); document.body.appendChild(oA);; document.body.removeChild(oA); },

While deploying application


Please help me. Thanks in advance.

Thanks & Regards

Srinivas Raju


capture.jpg (29.0 kB)