当前位置:网站首页>109. 使用 SAP UI5 FileUploader 控件上传本地文件
109. 使用 SAP UI5 FileUploader 控件上传本地文件
2022-07-26 00:35:00 【汪子熙】
我们可以使用 SAP UI5 提供的 FileUploader 控件,将本地文件上传到远端服务器进行存储。远端服务器负责接收上传的文件的逻辑,可以采取 Java,Node.js 或者 ABAP 等任意的编程语言实现。
本地文件上传也是最终用户同文件服务器交互的重要手段之一,因此文件上传这个主题,本教程会通过若干篇文章连续进行介绍。
笔者还另外实现了一个不通过 SAP UI5 FileUploader 控件,而是直接用 HTML 原生的 input 元素实现的文件上传场景,感兴趣的朋友可以阅读我这篇文章:使用 HTML input 元素上传本地文件,在服务器端打印出上传的内容。
先看本步骤完成后实现的场景。
本步骤完整的源代码位置如下。
进入目录 109,运行命令行 npm install 安装依赖之后,命令行 ui5 serve 启动开发服务器,访问 url:

可以看到上图进行文件上传的界面已经显示出来了。但是我们还需要有一个服务器,用于接收这个 SAP UI5 应用上传的文件。
为此,另外开启一个命令行窗口,输入命令行 node ui5FileServer.js, 看到打印的提示消息:liste
边栏推荐
猜你喜欢

Nodejs surface longitude

【无标题】如何实现可插拔配置?

Hcip day 12

What is the difference between request forwarding and request redirection?

Binary representation -- power of 2

PC website realizes wechat code scanning login function (II)

【IJCAI 2022】参数高效的大模型稀疏训练方法,大幅减少稀疏训练所需资源

Preparation of bovine erythrocyte superoxide dismutase sod/ folic acid coupled 2-ME albumin nanoparticles modified by bovine serum albumin

DC-6--vulnhub靶场

Redis(八) - Redis企业实战之优惠券秒杀
随机推荐
YOLOV3
8 tips to adjust database performance optimization, yyds
实战演练 | 查找在给定时间范围内购买超过 N 件商品的客户
Rotate K strings to the left (details)
Nodejs surface longitude
Biological JC uvssa complex alleviates myc driven transcription pressure ⼒ English
ShardingSphere数据分片
The way to understand JS: six common inheritance methods of JS
How to open the Internet and ask friends to play together?
BGP comprehensive experiment
开发还没联调,任务就要上线
[redis] ① introduction and installation of redis
Redis (VIII) - redis enterprises' actual coupons spike
Leetcode notes 121. the best time to buy and sell stocks
Super super super realistic digital people! Keep you on the air 24 hours a day
Study on gene targeting preparation of tissue plasminogen activator loaded on albumin nano ultrasonic microbubbles
Getting started with D3D calculation shaders
Quick start sequence table chain table
[contents] mqtt, nodejs projects
Research on the integrated data quality management system and technical framework under the scenario of data circulation and transaction