Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: HTML5 Form action to call Servlet

$
0
0

Hi Kanimozhi,

 

for the client-side implementation you can use the FileUploader-Control.

 

    // create the FileUploader control
   
var oSimpleFileUploader =new sap.ui.commons.FileUploader({
                uploadUrl
:"../../../../../upload",   // URL to submit the form to (your servlet)
                name
:"simpleUploader",          // name of the input type=file element within the form
                uploadOnChange
:true             // immediately upload the file after selection
    
});
   
// attach it to the page
    oSimpleFileUploader
.placeAt("sample1");

 

An example for a server-side Java implementation can be found here.

 

Regards Michael


Viewing all articles
Browse latest Browse all 8124

Trending Articles



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