Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8453

Re: File Upload from Controller to Server side xsjs

$
0
0

Instead of performing the upload yourself, why not let the fileUploader object do the work. It will send the content to the XSJS URL you specify.

 

oFileUploader.setUploadUrl('/playground/test/fileUploader/services/upload.xsjs?cmd=uploadFileToTable'+
'&FileName='+escape(fileName)+
'&TableName='+escape(tableName));
oFileUploader.attachUploadComplete(oEvent, oController.onUploadSuccess(oController) );
oFileUploader.upload();

Viewing all articles
Browse latest Browse all 8453

Trending Articles



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