SAPUI5上传图片或者其他文件 front-end
由于本地环境有set-cookie的问题,所以这里不使用eclipse,使用web ide进行开发测试。 1 在neo-app.json文件中引入destination。可以使用manifest.json的视图管理器加入对应server的odata service,这样可以不用手动追加。 <mvc:View controllerName="ZDEMO_UPLOAD.ZDEMO_UPLOAD.controller.App" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" xmlns:l="sap.ui.layout" xmlns:u="sap.ui.unified" displayBlock="true"> <Shell id="shell"> <App id="app"> <pages> <Page id="page" title="{i18n>title}"> <content> <l:VerticalLayout> <u:FileUploader id="idfileUploader" name="myFileUpload" tooltip="Upload your file to the local server" uploadComplete="handleUploadComplete"/> <Button text="Upload