Skip to Content
-1
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.

Webapp

capture.jpg

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; oA.style.display = "none"; oA.download = (oBundle.getText("lblPromotioncreation") + ".xlsx").replace(/\s/g, ''); document.body.appendChild(oA); oA.click(); document.body.removeChild(oA); },

While deploying application

microsoftteams-image-1.png

Please help me. Thanks in advance.

Thanks & Regards

Srinivas Raju

Attachments

capture.jpg (29.0 kB)