問題:最近有個需求可能需要用到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