Quantcast
Channel: SCN : Unanswered Discussions - SAP Fiori
Viewing all articles
Browse latest Browse all 1879

Fiori: Unable to do file upload with sap.ui.unified.Fileuploader

$
0
0

Hello,

 

I am using sap.ui.unified.FileUploader controller in my application to upload xml type file into the OData service.

Odata service function import url I am calling in the uploadUrl. How the file content will be uploaded to gateway.

I am getting the 404 error. : Invalid Function Import Parameter. The function import parameter is of type XSTRING.

how to achieve this with this controller?

 

FileUploader: parameters:

 

<u:FileUploader

  id="fileUploader"

  name="myFileUpload"

  uploadUrl="/sap/xxx/aaa/ccc/xxx_SRV/CreateView"  

  width="500px"

  fileType="xml"

  style="Emphasized"

  sendXHR="true"

  useMultipart="false"

  tooltip="{i18n>ENTER_FILE}"

  uploadComplete="handleUploadComplete"

  typeMissmatch="handleTypeMissmatch"

  change="handleValueChange"

  placeholder="{i18n>PLACEHOLDER}"/>

 

network url: http://localhost:8080/sap/xxx/aaa/ccc/xxx_SRV/CreateView.

404 Not Found error. Invalid Function Import Parameter.

 

Is this url correct? Do i need to set any other properties?

Can anybody suggest me how to solve this issue?


Viewing all articles
Browse latest Browse all 1879

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>