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

Unable to change uploadUrl in FileUpload control from beforeUploadFile event

$
0
0

I am using sap.ca.FileUpload control (ver 1.20)

 

My uploadUrl property is a dynamic URL which I need to set after a file has been selected for Upload.

 

I am trying to set the UploadUrl property through FileUpload.setUploadUrl() method in the beforeUploadFile event.


Even though I can see the value of UploadUrl has been changed in the debug screen,  the control still uses the earlier value while performing the upload.

 

Similarly I am not able to have setCustomHeader() to set header values in this event.

 

The changes are only reflected during subsequent File Uploads.

 

 

The online documentation says beforeUploadFile  event can be used to set Custom Header. But in my case custom header or any property of FileUpload control like UploadUrl are not immediately used by the control.

 

 

Request help!


Viewing all articles
Browse latest Browse all 9041

Trending Articles



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