当前位置:网站首页>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
边栏推荐
- [zero based BLDC series] brushless DC motor control principle based on the zero crossing detection method of back EMF
- Attack and defense world web question -favorite_ number
- Eight common SQL misuses of MySQL, all of which I have learned
- Data driven DDT for automated testing
- Tarjan finds the strongly connected component o (n+m), shrinking point
- 前缀异或和,异或差分数组
- Leetcode notes 350. Intersection of two arrays II
- DC-6--vulnhub靶场
- Nodejs surface longitude
- 【NumPy中数组相关方法】
猜你喜欢

hyperf使用之curd

Research on text classification of e-commerce comments based on mffmb

Study on gene targeting preparation of tissue plasminogen activator loaded on albumin nano ultrasonic microbubbles

HOOPS Exchange助力混合计算流体动力学软件搭建3D格式导入读取功能 | 客户案例

In order to grasp the redis data structure, I drew 40 pictures (full version)

OAuth2和JWT

从另一个角度告诉你单元测试的意义

Nodejs surface longitude

Study on bovine serum protein modified phenolic acids and alkaloids small molecules / coupled microspheres protein / bovine erythrocyte SOD

What is the difference between request forwarding and request redirection?
随机推荐
Nodejs learning
快速入门顺序表链表
2022/7/25 exam summary
Eight common SQL misuses of MySQL, all of which I have learned
Redis命令参考手册 - Key
GOM和GEE引擎黑屏不显示界面,装备地图怪物的解决方法
Getting started with D3D calculation shaders
SQL time splicing problem, splicing recovery automatically truncated by the system
Database tools duel: heidisql and Navicat
@The difference between requestparam and @pathvariable annotations
Rotate K strings to the left (details)
pip install --upgrade can‘t find Rust compiler
Semaphore
[paper notes] - target attitude estimation Epro PNP 2022 CVPR
hcia综合实验
Nodejs surface longitude
Comparing the seven distributed transaction schemes, I prefer Alibaba's open source Seata (principle + Practice)
Data driven DDT for automated testing
Four characteristics and isolation level of MySQL transactions
实战演练 | 查找在给定时间范围内购买超过 N 件商品的客户