cancel
Showing results for 
Search instead for 
Did you mean: 

Not uploaded as binary/text type is unknown

former_member818732
Discoverer
0 Kudos

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

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

Please help me. Thanks in advance.

Thanks & Regards

Srinivas Raju

Accepted Solutions (0)

Answers (1)

Answers (1)

jlongie
Advisor
Advisor
0 Kudos

Please refer to this answer;

https://ga.support.sap.com/dtp/viewer/index.html#/tree/3046/actions/45995:45996:50742:46000:53797

The unknown file types have to be maintained in .Ui5RepositoryTextFiles or .Ui5RepositoryBinaryFiles files, according to https://ui5.sap.com/#/topic/a883327a82ef4cc792f3c1e7b7a48de8

John