ui5 顯示長傳路徑並解決路徑顯示fake的問題

問題:最近有個需求可能需要用到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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章