问题:最近有个需求可能需要用到file upload,将文件从前台传到后台。在上传的时候可能需要文件的路径。
使用控件:FileUploader
最终效果
话不多说,直接上代码
<!-- <mvc:View
controllerName="ZORG_TREE.controller.HomePage"
xmlns:core="sap.ui.core"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m">
</mvc:View> -->
<mvc:View
controllerName="ZORG_TREE.controller.HomePage"
xmlns:l="sap.ui.layout"
xmlns:u="sap.ui.unified"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m"
class="viewPadding">
<l:VerticalLayout>
<u:FileUploader
id="fileUploader"
name="myFileUpload"
uploadUrl="upload/"
tooltip="Upload yo