2020-09-02 14:04发布
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)你好, 即使设置了我的目的地并... 显示全部
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
你好,
即使设置了我的目的地并将其添加到neo-app文件中,我也无法将任何文件发布到SAP Cloud平台中的我的存储库中。 但是当我尝试使用sapui5 fileUploader上传文件时,出现405错误。 有什么帮助吗?
查看 :
name =" myFileUpload"
uploadUrl ="/img/cmis/xxxxxxxxxxxxxxxxx/root"
width =" 400px"
tooltip ="将文件上传到本地服务器"
uploadComplete =" handleUploadComplete"/>
<按钮text ="上传文件" press =" handleUploadPress"/>
控制器:
handleUploadComplete:函数(oEvent)
{
var sResponse = oEvent.getParameter(" response");
如果(sResponse)
{var sMsg ="";
var m =/^ \ [(\ d \ d \ d)\]:(。*)$/。exec(sResponse);
如果(m [1] ===" 200")
{sMsg ="返回代码:" + m [1] +" \ n" + m [2],"成功","上传成功";
oEvent.getSource()。setValue(""); }
else {sMsg ="返回码:" + m [1] +" \ n" + m [2],"错误","上传错误"; }
MessageToast.show(sMsg); }
}
,handleUploadPress:函数(oEvent)
{var oFileUploader = this.getView()。byId(" fileUploader");
oFileUploader.upload(); }
neo-app:
{" path":"/img/cmis",
"目标":{
" type":"目的地",
"名称":" documentservice"
},
"描述":"连接到html5应用程序"}
最多设置5个标签!
查看 :
name =" myFileUpload"
uploadUrl ="/img/cmis/xxxxxxxxxxxxxxxxx/root"
width =" 400px"
tooltip ="将文件上传到本地服务器"
uploadComplete =" handleUploadComplete"/>
<按钮text ="上传文件" press =" handleUploadPress"/>
控制器:
handleUploadComplete:函数(oEvent)
{
var sResponse = oEvent.getParameter(" response");
如果(sResponse)
{var sMsg ="";
var m =/^ \ [(\ d \ d \ d)\]:(。*)$/。exec(sResponse);
如果(m [1] ===" 200")
{sMsg ="返回代码:" + m [1] +" \ n" + m [2],"成功","上传成功";
oEvent.getSource()。setValue(""); }
else {sMsg ="返回码:" + m [1] +" \ n" + m [2],"错误","上传错误"; }
MessageToast.show(sMsg); }
}
,handleUploadPress:函数(oEvent)
{var oFileUploader = this.getView()。byId(" fileUploader");
oFileUploader.upload(); }
neo-app:
{" path":"/img/cmis",
"目标":{
" type":"目的地",
"名称":" documentservice"
},
"描述":"连接到html5应用程序"}
一周热门 更多>