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(); |